aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Preprocessor/builtin_line.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Preprocessor/builtin_line.c b/test/Preprocessor/builtin_line.c
index c9ce558c1a..7698d5f43c 100644
--- a/test/Preprocessor/builtin_line.c
+++ b/test/Preprocessor/builtin_line.c
@@ -1,4 +1,13 @@
-// RUN: clang %s -E | grep "^ 4"
+// RUN: clang %s -E | grep "^ 4" &&
#define FOO __LINE__
FOO
+
+// PR3579 - This should expand to the __LINE__ of the ')' not of the X.
+// RUN: clang %s -E | grep "^A 13"
+
+#define X() __LINE__
+
+A X(
+
+)