Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Frontend/rewrite-macros.c @ 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 %s -verify -rewrite-macros -o %t |
2 // RUN: FileCheck %s < %t | |
3 | |
4 // Any CHECK line comments are included in the output, so we use some extra | |
5 // regex brackets to make sure we don't match the CHECK lines themselves. | |
6 | |
7 #define A(a,b) a ## b | |
8 | |
9 // CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}} | |
10 A(1,2) | |
11 | |
12 // CHECK: {{^}} /*_Pragma("mark")*/{{$}} | |
13 _Pragma("mark") | |
14 | |
15 // CHECK: /*#warning eek*/{{$}} | |
16 /* expected-warning {{eek}} */ #warning eek | |
17 | |
18 // CHECK: {{^}}//#pragma mark mark{{$}} | |
19 #pragma mark mark |