aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/Inputs/pragma_sysheader.h
blob: 7352370e724b4eab6b1a5d9d7dd7e6a34134c278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#if defined(CLANG)
#pragma clang system_header
// expected-no-diagnostics
#elif defined(GCC)
#pragma GCC system_header
// expected-no-diagnostics
#elif defined(MS)
#pragma system_header
// expected-no-diagnostics
#else
// expected-warning@+1{{unknown pragma ignored}}
#pragma system_header

// expected-note@+4{{previous definition is here}}
// expected-warning@+4{{redefinition of typedef 'x' is a C11 feature}}
#endif

typedef int x;
typedef int x;