Hi All,
The attached patch modifies PCH/headersearch.cpp test to use LLVM bit code output instead of object code. Since, the object code output is not necessary for the functionality tested by this test but causes it to fail for any target without direct object generation capabilities, I would like to make this change. Please let me know if the patch is good to commit. Thanks, Jyotsna -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
>From 84737671a88460e5c3ac3d32e4eef8ca26eb05c0 Mon Sep 17 00:00:00 2001 From: Jyotsna Verma <[email protected]> Date: Thu, 4 Apr 2013 12:48:53 -0500 Subject: [PATCH] Modify test/PCH/headersearch.cpp to generate bit code instead of object code. The object code output is not necessary for the functionality tested by this test. However, it causes it to fail for any target without direct object generation capability. --- test/PCH/headersearch.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/PCH/headersearch.cpp b/test/PCH/headersearch.cpp index 8ca0c36..014b1fd 100644 --- a/test/PCH/headersearch.cpp +++ b/test/PCH/headersearch.cpp @@ -20,15 +20,15 @@ // RUN: cp -pR %t_orig %t_moved // Check diagnostic with location in original source: -// RUN: %clang_cc1 -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -Wpadded -emit-obj -o %t.o %s 2> %t.stderr +// RUN: %clang_cc1 -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -Wpadded -emit-llvm -o %t.o %s 2> %t.stderr // RUN: grep 'struct orig_sub' %t.stderr // Check diagnostic with 2nd location in original source: -// RUN: not %clang_cc1 -DREDECL -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -emit-obj -o %t.o %s 2> %t.stderr +// RUN: not %clang_cc1 -DREDECL -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -emit-llvm -o %t.o %s 2> %t.stderr // RUN: grep 'void foo' %t.stderr // Check diagnostic with instantiation location in original source: -// RUN: not %clang_cc1 -DINSTANTIATION -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -emit-obj -o %t.o %s 2> %t.stderr +// RUN: not %clang_cc1 -DINSTANTIATION -include-pch all.h.pch -I%t_moved -I%t_moved/sub2 -emit-llvm -o %t.o %s 2> %t.stderr // RUN: grep 'orig_sub2_1' %t.stderr void qq(orig_sub*) {all();} -- 1.7.6.4
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
