2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify -rewrite-macros -o %t %s
|
2008-10-05 09:39:04 +08:00
|
|
|
|
|
|
|
#define A(a,b) a ## b
|
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '12 */\*A\*/ /\*(1,2)\*/' %t
|
2008-10-05 09:39:04 +08:00
|
|
|
A(1,2)
|
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep '/\*_Pragma("mark")\*/' %t
|
2008-10-05 09:39:04 +08:00
|
|
|
_Pragma("mark")
|
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep "//#warning eek" %t
|
2012-02-02 08:16:13 +08:00
|
|
|
/* expected-warning {{eek}} */ #warning eek
|
2008-10-05 09:39:04 +08:00
|
|
|
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep "//#pragma mark mark" %t
|
2008-10-05 09:39:04 +08:00
|
|
|
#pragma mark mark
|
|
|
|
|
|
|
|
|