summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/builtin_line.c
blob: 52228b5fdbf592e1d88c415bc1be2c72b7b54048 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 %s -E | grep "^  4"
#define FOO __LINE__

  FOO

// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
// RUN: %clang_cc1 %s -E | grep "^A 13"

#define X() __LINE__

A X(

)