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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -verify -rewrite-macros -o %t
anatofuz
parents:
diff changeset
2 // RUN: FileCheck %s < %t
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 // Any CHECK line comments are included in the output, so we use some extra
anatofuz
parents:
diff changeset
5 // regex brackets to make sure we don't match the CHECK lines themselves.
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 #define A(a,b) a ## b
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}}
anatofuz
parents:
diff changeset
10 A(1,2)
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // CHECK: {{^}} /*_Pragma("mark")*/{{$}}
anatofuz
parents:
diff changeset
13 _Pragma("mark")
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // CHECK: /*#warning eek*/{{$}}
anatofuz
parents:
diff changeset
16 /* expected-warning {{eek}} */ #warning eek
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK: {{^}}//#pragma mark mark{{$}}
anatofuz
parents:
diff changeset
19 #pragma mark mark