load_failure.c revision 65030af6526748ce11534e92f0ccefc44091ba13
1#ifdef NONEXISTENT
2__import_module__ load_nonexistent;
3#endif
4
5#ifdef FAILURE
6__import_module__ load_failure;
7#endif
8
9// RUN: %clang_cc1 -x c++ -emit-module -o %T/load_failure.pcm %S/Inputs/load_failure.h
10// RUN: %clang_cc1 -I %T %s -DNONEXISTENT 2>&1 | FileCheck -check-prefix=CHECK-NONEXISTENT %s
11// CHECK-NONEXISTENT: load_failure.c:2:19: fatal error: module 'load_nonexistent' not found
12
13// RUN: %clang_cc1 -I %T %s -DFAILURE 2>&1 | FileCheck -check-prefix=CHECK-FAILURE %s
14// FIXME: Clean up diagnostic text below and give it a location
15// CHECK-FAILURE: error: C99 support was disabled in PCH file but is currently enabled
16
17
18