r227896 - test: Make encode-test-5.m's output not dependent on its filename

David Majnemer david.majnemer at gmail.com
Mon Feb 2 15:38:27 PST 2015


Author: majnemer
Date: Mon Feb  2 17:38:27 2015
New Revision: 227896

URL: http://llvm.org/viewvc/llvm-project?rev=227896&view=rev
Log:
test: Make encode-test-5.m's output not dependent on its filename

Pipe the file into clang instead of passing the file path on the command
line.

Modified:
    cfe/trunk/test/CodeGenObjC/encode-test-5.m

Modified: cfe/trunk/test/CodeGenObjC/encode-test-5.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/encode-test-5.m?rev=227896&r1=227895&r2=227896&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/encode-test-5.m (original)
+++ cfe/trunk/test/CodeGenObjC/encode-test-5.m Mon Feb  2 17:38:27 2015
@@ -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





More information about the cfe-commits mailing list