test: Make encode-test-5.m's output not dependent on its filename
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 2 Feb 2015 23:38:27 +0000 (23:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 2 Feb 2015 23:38:27 +0000 (23:38 +0000)
Pipe the file into clang instead of passing the file path on the command
line.

llvm-svn: 227896

clang/test/CodeGenObjC/encode-test-5.m

index cca19d7..c7f030c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -x objective-c -triple=x86_64-apple-darwin9 -emit-llvm -o - < %s | FileCheck %s
 
 // CHECK-DAG: @[[complex_int:.*]] = private unnamed_addr constant [3 x i8] c"ji\00", align 1
 // CHECK-DAG: @a = global i8* getelementptr inbounds ([3 x i8]* @[[complex_int]], i32 0, i32 0), align 8