llvm-for-llvmta/tools/clang/test/PCH/cxx-functions.cpp

13 lines
286 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// Test this without pch.
// RUN: %clang_cc1 -include %S/cxx-functions.h -fsyntax-only -verify %s
// RUN: %clang_cc1 -x c++-header -emit-pch -o %t %S/cxx-functions.h
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
// expected-no-diagnostics
void test_foo() {
foo();
}