blob: 77781b7bc2010bb4ec2b414e7d365c3ad94c3701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//TEST:SIMPLE: -Itests/preprocessor/include
// #include support
int foo() { return 0; }
#include "pragma-once-c.h"
// If include worked this will be defined
#ifndef ONLY_DEFINED_ONCE_C
// And so hitting this indicates and error (and will fail as bar isn't defined)
int baz() { return bar(); }
#endif
|