]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Modules/redecls.m
Vendor import of clang trunk r238337:
[FreeBSD/FreeBSD.git] / test / Modules / redecls.m
1 // RUN: rm -rf %t.mcp
2 // RUN: %clang_cc1 -fmodules %s -emit-pch -o %t1.pch -fmodules-cache-path=%t.mcp -I %S/Inputs/redecls
3 // RUN: %clang_cc1 -fmodules %s -emit-pch -o %t2.pch -include-pch %t1.pch -fmodules-cache-path=%t.mcp -I %S/Inputs/redecls
4 // RUN: %clang_cc1 -fmodules %s -fsyntax-only -include-pch %t2.pch -I %S/Inputs/redecls -fmodules-cache-path=%t.mcp -verify
5
6 #ifndef HEADER1
7 #define HEADER1
8
9 @import a;
10
11 #elif !defined(HEADER2)
12 #define HEADER2
13
14 @class AA;
15 @import b;
16
17 #else
18
19 // rdar://13712705
20 @interface SS : AA
21 @end
22
23 #warning parsed this
24 #endif
25 // expected-warning@-2{{parsed this}}