brintos

brintos / llvm-project-archived public Read only

0
0
Text · 524 B · 499a9a2 Raw
20 lines · c
1// Preamble detection test: header with an include guard.2#ifndef HEADER_H3#define HEADER_H4#include "foo"5int bar;6#endif7 8// This test checks for detection of the preamble of a file, which9// includes all of the starting comments and #includes.10 11// RUN: %clang_cc1 -print-preamble %s > %t12// RUN: echo END. >> %t13// RUN: FileCheck < %t %s14 15// CHECK: // Preamble detection test: header with an include guard.16// CHECK-NEXT: #ifndef HEADER_H17// CHECK-NEXT: #define HEADER_H18// CHECK-NEXT: #include "foo"19// CHECK-NEXT: END.20