From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Preprocessor/pragma_sysheader.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/Preprocessor/pragma_sysheader.c (limited to 'clang/test/Preprocessor/pragma_sysheader.c') diff --git a/clang/test/Preprocessor/pragma_sysheader.c b/clang/test/Preprocessor/pragma_sysheader.c new file mode 100644 index 0000000..17080fe --- /dev/null +++ b/clang/test/Preprocessor/pragma_sysheader.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -verify -pedantic %s -fsyntax-only +// RUN: %clang_cc1 -E %s | FileCheck %s +// rdar://6899937 +#include "pragma_sysheader.h" + + +// PR9861: Verify that line markers are not messed up in -E mode. +// CHECK: # 1 "{{.*}}pragma_sysheader.h" 1 +// CHECK-NEXT: # 1 "{{.*}}pragma_sysheader.h" 3 +// CHECK-NEXT: typedef int x; +// CHECK-NEXT: typedef int x; +// CHECK-NEXT: # 5 "{{.*}}pragma_sysheader.c" 2 -- cgit v1.2.3