llvm-project/clang/test/Preprocessor/builtin_line.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
242 B
C
Raw Normal View History

2013-01-29 05:04:29 +08:00
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
2006-06-30 00:25:13 +08:00
#define FOO __LINE__
FOO
2013-01-29 05:04:29 +08:00
// CHECK: {{^}} 4{{$}}
// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
#define X() __LINE__
A X(
)
2013-01-29 05:04:29 +08:00
// CHECK: {{^}}A 13{{$}}