2021-06-23 16:35:55 +08:00
|
|
|
// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only
|
|
|
|
// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -DGCC
|
|
|
|
// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -DCLANG
|
|
|
|
// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -fms-extensions -DMS
|
2011-05-23 06:10:16 +08:00
|
|
|
|
2021-06-23 16:35:55 +08:00
|
|
|
// rdar://6899937
|
|
|
|
#include "Inputs/pragma_sysheader.h"
|
2011-05-23 06:10:16 +08:00
|
|
|
|
2021-06-23 16:35:55 +08:00
|
|
|
// RUN: %clang_cc1 -E %s | FileCheck %s
|
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
|
2021-06-23 16:35:55 +08:00
|
|
|
// CHECK-NEXT: # 12 "{{.*}}pragma_sysheader.h"
|
|
|
|
// CHECK: typedef int x;
|
|
|
|
// CHECK: typedef int x;
|
|
|
|
// CHECK-NEXT: # 8 "{{.*}}pragma_sysheader.c" 2
|