• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -triple x86_64-apple-macosx10 -fmodules -fmodules-cache-path=%t \
3// RUN:     -fmodules-ignore-macro=PREFIX -DPREFIX -I %S/Inputs/va_list \
4// RUN:     -x objective-c-header %s -o %t.pch -emit-pch
5
6// Include the pch, as a sanity check.
7// RUN: %clang_cc1 -triple x86_64-apple-macosx10 -fmodules -fmodules-cache-path=%t \
8// RUN:     -fmodules-ignore-macro=PREFIX -I %S/Inputs/va_list -include-pch %t.pch \
9// RUN:     -x objective-c %s -fsyntax-only
10
11// Repeat the previous emit-pch, but not we will have a global module index.
12// For some reason, this results in an identifier for __va_list_tag being
13// emitted into the pch.
14// RUN: %clang_cc1 -triple x86_64-apple-macosx10 -fmodules -fmodules-cache-path=%t \
15// RUN:     -fmodules-ignore-macro=PREFIX -DPREFIX -I %S/Inputs/va_list \
16// RUN:     -x objective-c-header %s -o %t.pch -emit-pch
17
18// Include the pch, which now has __va_list_tag in it, which needs to be merged.
19// RUN: %clang_cc1 -triple x86_64-apple-macosx10 -fmodules -fmodules-cache-path=%t \
20// RUN:     -fmodules-ignore-macro=PREFIX -I %S/Inputs/va_list -include-pch %t.pch \
21// RUN:     -x objective-c %s -fsyntax-only
22
23// rdar://18039719
24
25#ifdef PREFIX
26@import va_list_b;
27#endif
28