llvm-capstone/clang/test/Preprocessor/macro_arg_slocentry_merge.c
Argyrios Kyrtzidis 5e14925a35 [preprocessor] When "merging" macro argument tokens into one SLocEntry chunk,
make sure they came from the same kind of FileIDs.

Thanks to Abramo Bagnara for providing the test case.

llvm-svn: 170616
2012-12-19 23:55:44 +00:00

8 lines
330 B
C

// RUN: not %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s
#include "macro_arg_slocentry_merge.h"
// CHECK: macro_arg_slocentry_merge.h:7:19: error: unknown type name 'win'
// CHECK: macro_arg_slocentry_merge.h:5:16: note: expanded from macro 'WINDOW'
// CHECK: macro_arg_slocentry_merge.h:6:18: note: expanded from macro 'P_'