aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/rewrite-macros.c
blob: 32e02ecb266f8ec8fecbc05d0806644532e9ffe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: clang-cc -verify --rewrite-macros -o %t %s &&

#define A(a,b) a ## b

// RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t &&
A(1,2)

// RUN: grep '/\*_Pragma("mark")\*/' %t &&
_Pragma("mark")

// RUN: grep "//#warning eek" %t &&
/* expected-warning {{#warning eek}} */ #warning eek

// RUN: grep "//#pragma mark mark" %t &&
#pragma mark mark

// RUN: true