From 5e20cdd81c44a443562a09007668ffdf76c455af Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:47:56 +0000 Subject: Vendor import of clang trunk r238337: https://llvm.org/svn/llvm-project/cfe/trunk@238337 --- test/Preprocessor/annotate_in_macro_arg.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Preprocessor/annotate_in_macro_arg.c (limited to 'test/Preprocessor/annotate_in_macro_arg.c') diff --git a/test/Preprocessor/annotate_in_macro_arg.c b/test/Preprocessor/annotate_in_macro_arg.c new file mode 100644 index 000000000000..f4aa7d158261 --- /dev/null +++ b/test/Preprocessor/annotate_in_macro_arg.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -verify %s +#define M1() // expected-note{{macro 'M1' defined here}} + +M1( // expected-error{{unterminated function-like macro invocation}} + +#if M1() // expected-error{{expected value in expression}} +#endif +#pragma pack() -- cgit v1.2.3