mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 08:34:59 +00:00
ca97589f7d
existing practice with Python extension modules. Not that Python extension modules should be using a double-underscored identifier anyway, but... llvm-svn: 138870
18 lines
631 B
C
18 lines
631 B
C
#ifdef NONEXISTENT
|
|
__import_module__ load_nonexistent;
|
|
#endif
|
|
|
|
#ifdef FAILURE
|
|
__import_module__ load_failure;
|
|
#endif
|
|
|
|
// RUN: %clang_cc1 -x c++ -emit-module -o %T/load_failure.pcm %S/Inputs/load_failure.h
|
|
// RUN: %clang_cc1 -I %T %s -DNONEXISTENT 2>&1 | FileCheck -check-prefix=CHECK-NONEXISTENT %s
|
|
// CHECK-NONEXISTENT: load_failure.c:2:19: fatal error: module 'load_nonexistent' not found
|
|
|
|
// RUN: %clang_cc1 -I %T %s -DFAILURE 2>&1 | FileCheck -check-prefix=CHECK-FAILURE %s
|
|
// FIXME: Clean up diagnostic text below and give it a location
|
|
// CHECK-FAILURE: error: C99 support was disabled in PCH file but is currently enabled
|
|
|
|
|