2013-04-11 05:10:39 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -rewrite-macros -o %t
|
|
|
|
// RUN: FileCheck %s < %t
|
|
|
|
|
|
|
|
// Any CHECK line comments are included in the output, so we use some extra
|
|
|
|
// regex brackets to make sure we don't match the CHECK lines themselves.
|
2008-10-05 09:39:04 +08:00
|
|
|
|
|
|
|
#define A(a,b) a ## b
|
|
|
|
|
2013-04-12 02:39:10 +08:00
|
|
|
// CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}}
|
2008-10-05 09:39:04 +08:00
|
|
|
A(1,2)
|
|
|
|
|
2013-04-12 02:39:10 +08:00
|
|
|
// CHECK: {{^}} /*_Pragma("mark")*/{{$}}
|
2008-10-05 09:39:04 +08:00
|
|
|
_Pragma("mark")
|
|
|
|
|
2013-04-12 02:39:10 +08:00
|
|
|
// CHECK: /*#warning eek*/{{$}}
|
2012-02-02 08:16:13 +08:00
|
|
|
/* expected-warning {{eek}} */ #warning eek
|
2008-10-05 09:39:04 +08:00
|
|
|
|
2013-04-12 02:39:10 +08:00
|
|
|
// CHECK: {{^}}//#pragma mark mark{{$}}
|
2008-10-05 09:39:04 +08:00
|
|
|
#pragma mark mark
|