brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · d5705e0 Raw
24 lines · c
1// RUN: %clang_cc1 -Wall %s -I %S/Inputs -isystem %S/Inputs/SystemHeaderPrefix -verify2// RUN: %clang_cc1 %s -E -o - -I %S/Inputs -isystem %S/Inputs/SystemHeaderPrefix | FileCheck %s3#include <noline.h>4#include <line-directive-in-system.h>5 6// expected-error@line-directive.h:* {{type specifier missing, defaults to 'int'}}7#include "line-directive.h"8 9// This tests that "#line" directives in system headers preserve system10// header-ness just like GNU line markers that don't have filenames.  This was11// PR30752.12 13// CHECK: # {{[0-9]+}} "{{.*}}system-header-line-directive.c" 214// CHECK: # 1 "{{.*}}noline.h" 1 315// CHECK: foo(void);16// CHECK: # 4 "{{.*}}system-header-line-directive.c" 217// CHECK: # 1 "{{.*}}line-directive-in-system.h" 1 318//      The "3" below indicates that "foo.h" is considered a system header.19// CHECK: # 1 "foo.h" 320// CHECK: foo(void);21// CHECK: # {{[0-9]+}} "{{.*}}system-header-line-directive.c" 222// CHECK: # 1 "{{.*}}line-directive.h" 123// CHECK: # 10 "foo.h"{{$}}24