summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/load_failure.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-10 00:30:18 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-10 00:30:18 +0000
commitabc5fbe9d6435d49e147b31a3679b2d91772907f (patch)
tree8abe40964a598f088fc94a3da47586465ae75e06 /clang/test/Modules/load_failure.c
parent87d8124b0e5da9b2727df6490a43d0ce367a637f (diff)
downloadbcm5719-llvm-abc5fbe9d6435d49e147b31a3679b2d91772907f.tar.gz
bcm5719-llvm-abc5fbe9d6435d49e147b31a3679b2d91772907f.zip
Don't crash when we fail to load a module. It's unbecoming of a
well-bred compiler like Clang. llvm-svn: 139442
Diffstat (limited to 'clang/test/Modules/load_failure.c')
-rw-r--r--clang/test/Modules/load_failure.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Modules/load_failure.c b/clang/test/Modules/load_failure.c
index b1f3e0fe799..f034c787396 100644
--- a/clang/test/Modules/load_failure.c
+++ b/clang/test/Modules/load_failure.c
@@ -10,7 +10,9 @@ __import_module__ load_failure;
// 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
+// RUN: not %clang_cc1 -I %T %s -DFAILURE 2> %t
+// RUN: FileCheck -check-prefix=CHECK-FAILURE %s < %t
+
// 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
OpenPOWER on IntegriCloud