2012-04-16 06:09:44 +08:00
|
|
|
// RUN: %clang_cc1 -verify -pedantic %s -fsyntax-only
|
2011-05-23 07:47:57 +08:00
|
|
|
// RUN: %clang_cc1 -E %s | FileCheck %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2009-06-15 13:02:34 +08:00
|
|
|
// rdar://6899937
|
|
|
|
#include "pragma_sysheader.h"
|
2011-05-23 06:10:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
// PR9861: Verify that line markers are not messed up in -E mode.
|
|
|
|
// CHECK: # 1 "{{.*}}pragma_sysheader.h" 1
|
2013-04-18 03:09:18 +08:00
|
|
|
// CHECK-NEXT: # 2 "{{.*}}pragma_sysheader.h" 3
|
2011-05-23 06:10:16 +08:00
|
|
|
// CHECK-NEXT: typedef int x;
|
|
|
|
// CHECK-NEXT: typedef int x;
|
2012-10-19 20:44:48 +08:00
|
|
|
// CHECK-NEXT: # 6 "{{.*}}pragma_sysheader.c" 2
|