summaryrefslogtreecommitdiffstats
path: root/test/PCH/cxx-functions.cpp
blob: 3b4fe77c044a2ccf0c35aa8f51fd89df9b7368c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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();
}