Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/method-redecls.m @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t |
2 // RUN: %clang_cc1 -x objective-c %s -emit-pch -o %t -D IMPL | |
3 | |
4 // Avoid infinite loop because of method redeclarations. | |
5 | |
6 @interface Foo | |
7 -(void)meth; | |
8 -(void)meth; | |
9 -(void)meth; | |
10 @end | |
11 | |
12 #ifdef IMPL | |
13 | |
14 @implementation Foo | |
15 -(void)meth { } | |
16 @end | |
17 | |
18 #endif |