summaryrefslogtreecommitdiffstats
path: root/test/PCH/multiple_decls.c
blob: 4b2fc6247ce765888d92e8c23248a3ddad09ab70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Test this without pch.
// RUN: clang-cc -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s &&

// Test with pch.
// RUN: clang-cc -emit-pch -o %t %S/multiple_decls.h &&
// RUN: clang-cc -include-pch %t -fsyntax-only -ast-print -o - %s 

void f0(char c) {
  wide(c);
}

struct wide w;
struct narrow n;

void f1(int i) {
  narrow(i);
}
OpenPOWER on IntegriCloud