Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/pragma-once.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // Test this without pch. | |
2 // RUN: %clang_cc1 -include %S/Inputs/pragma-once.h -fsyntax-only -verify %s | |
3 | |
4 // Test with pch. | |
5 // RUN: %clang_cc1 -emit-pch -o %t %S/Inputs/pragma-once.h | |
6 // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s | |
7 | |
8 // expected-no-diagnostics | |
9 | |
10 // Including "pragma-once.h" twice, to verify the 'once' aspect is honored. | |
11 #include "Inputs/pragma-once.h" | |
12 #include "Inputs/pragma-once.h" | |
13 int foo(void) { return 0; } |