new testcase

llvm-svn: 38693
This commit is contained in:
Chris Lattner 2006-07-11 04:00:23 +00:00
parent db878cde8e
commit 53ede2a826
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// RUN: clang -E %s | grep 'noexp: foo y' &&
// RUN: clang -E %s | grep 'expand: abc'
#define A foo
#define foo() abc
#define X A y
// This should not expand to abc, because the foo macro isn't followed by (.
noexp: X
#undef X
// This should expand to abc.
#define X A ()
expand: X