]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/Lexer/preamble.c
1 // Preamble detection test: see below for comments and test commands.
2 //* A BCPL comment that includes '/*'
17 // This test checks for detection of the preamble of a file, which
18 // includes all of the starting comments and #includes. Note that any
19 // changes to the preamble part of this file must be mirrored in
20 // Inputs/preamble.txt, since we diff against it.
22 // RUN: %clang_cc1 -print-preamble %s > %t
23 // RUN: echo END. >> %t
24 // RUN: FileCheck < %t %s
26 // CHECK: // Preamble detection test: see below for comments and test commands.
27 // CHECK-NEXT: //* A BCPL comment that includes '/*'
28 // CHECK-NEXT: #include <blah>
29 // CHECK-NEXT: #ifndef FOO
31 // CHECK-NEXT: #ifdef BAR
32 // CHECK-NEXT: #elif WIBBLE
34 // CHECK-NEXT: #pragma unknown