Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/replaced-decl.m @ 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 // Without PCH | |
2 // RUN: %clang_cc1 -fsyntax-only -verify %s -include %s -include %s | |
3 | |
4 // With PCH | |
5 // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s | |
6 | |
7 #ifndef HEADER1 | |
8 #define HEADER1 | |
9 | |
10 @class I; | |
11 | |
12 #elif !defined(HEADER2) | |
13 #define HEADER2 | |
14 | |
15 @interface I | |
16 @end | |
17 | |
18 #else | |
19 | |
20 typedef int I; // expected-error {{redefinition}} | |
21 // expected-note@15 {{previous}} | |
22 | |
23 #endif |