blob: 5b5df38efed4845fb08366fc9d5ba9aae6ffa0c2 [file] [log] [blame]
Douglas Gregor6aa52ec2011-08-26 23:56:07 +00001#ifdef NONEXISTENT
2__import__ load_nonexistent;
3#endif
4
5#ifdef FAILURE
6__import__ 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:12: 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