Fix a test so that it actually checks the output.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 24 Mar 2017 19:32:20 +0000 (19:32 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 24 Mar 2017 19:32:20 +0000 (19:32 +0000)
llvm-svn: 298728

clang/test/Modules/module-impl-with-link.c

index 5e5ca83..3bd4c4a 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodule-name=Clib %s -I %S/Inputs/module-impl-with-link -emit-llvm -o -
+// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodule-name=Clib %s -I %S/Inputs/module-impl-with-link -emit-llvm -o - | FileCheck %s
 #include "foo.h"
 // CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[LINK_OPTIONS:[0-9]+]]}
 // Make sure we don't generate linker option for module Clib since this TU is