brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · ca284c5 Raw
22 lines · c
1#ifdef NONEXISTENT2@import load_nonexistent;3#endif4 5#ifdef FAILURE6@import load_failure;7#endif8 9// RUN: rm -rf %t10// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -fmodules-cache-path=%t -fdisable-module-hash -emit-module -fmodule-name=load_failure %S/Inputs/module.modulemap11// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs -fdisable-module-hash %s -DNONEXISTENT 2>&1 | FileCheck -check-prefix=CHECK-NONEXISTENT %s12// CHECK-NONEXISTENT: load_failure.c:2:9: fatal error: module 'load_nonexistent' not found13 14// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs -fdisable-module-hash %s -DFAILURE 2> %t.out15// RUN: FileCheck -check-prefix=CHECK-FAILURE %s < %t.out16 17// FIXME: Clean up diagnostic text below and give it a location18// CHECK-FAILURE: error: C99 was disabled in precompiled file '{{.*}}load_failure.pcm' but is currently enabled19// FIXME: When we have a syntax for modules in C, use that.20 21 22