Add -rewrite-macros test case.

llvm-svn: 57094
This commit is contained in:
Daniel Dunbar 2008-10-05 01:39:04 +00:00
parent 374b8b4269
commit 0af89ff0fb
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// RUN: clang -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