15 lines · c
1// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only2// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -DGCC3// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -DCLANG4// RUN: %clang_cc1 -verify -std=c99 -Wunknown-pragmas -pedantic %s -fsyntax-only -fms-extensions -DMS5 6#include "Inputs/pragma_sysheader.h"7 8// RUN: %clang_cc1 -E %s | FileCheck %s9// PR9861: Verify that line markers are not messed up in -E mode.10// CHECK: # 1 "{{.*}}pragma_sysheader.h" 111// CHECK-NEXT: # 12 "{{.*}}pragma_sysheader.h"12// CHECK: typedef int x;13// CHECK: typedef int x;14// CHECK-NEXT: # 7 "{{.*}}pragma_sysheader.c" 215