20 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir -p %t/Src3// RUN: cp "%s" "%t/Src/test.cpp"4// RUN: mkdir -p %t/Include5// RUN: cp "%S/Inputs/fixed-header.h" "%t/Include/"6// -I flag is relative to %t (where compile_flags is), not Src/.7// RUN: echo '-IInclude/' >> %t/compile_flags.txt8// RUN: echo " -Dklazz=class " >> %t/compile_flags.txt9// RUN: echo '-std=c++11' >> %t/compile_flags.txt10// RUN: clang-check "%t/Src/test.cpp" 2>&111// RUN: echo > %t/compile_flags.txt12// RUN: not clang-check "%t/Src/test.cpp" 2>&1 | FileCheck "%s" -check-prefix=NODB13 14// NODB: unknown type name 'klazz'15klazz F{};16 17// NODB: 'fixed-header.h' file not found18#include "fixed-header.h"19static_assert(SECRET_SYMBOL == 1, "");20