]> granicus.if.org Git - clang/commitdiff
Fixed test case asserts due to checkin of r130710.
authorChad Rosier <mcrosier@apple.com>
Mon, 2 May 2011 20:39:21 +0000 (20:39 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 2 May 2011 20:39:21 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130720 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/inline.c
test/FixIt/fixit-cxx0x.cpp
test/PCH/cxx-for-range.cpp
test/PCH/cxx-reference.cpp
test/Sema/illegal-types.c

index a6b4b3e4483bafeed959c083cc476e13635c5d0e..96f9c5c9d4bbbb19273bdda80d38e061190e024a 100644 (file)
@@ -29,7 +29,7 @@
 // RUN: grep "define available_externally i32 @test5" %t
 
 // RUN: echo "\nC++ tests:"
-// RUN: %clang %s -O1 -emit-llvm -S -o %t -std=c++98
+// RUN: %clang -x c++ %s -O1 -emit-llvm -S -o %t -std=c++98
 // RUN: grep "define linkonce_odr i32 @_Z2eiv()" %t
 // RUN: grep "define linkonce_odr i32 @_Z3foov()" %t
 // RUN: grep "define i32 @_Z3barv()" %t
index 90bf9f5c188014be362985aee19b749f5b2382c6..77e9e5815c2f90e4ce9b46a9dc1a26271ae19584 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -verify -std=c++0x %s
 // RUN: cp %s %t
-// RUN: %clang_cc1 -std=c++0x -fixit %t || true
+// RUN: %clang_cc1 -x c++ -std=c++0x -fixit %t || true
 // RUN: %clang_cc1 -Wall -pedantic -x c++ -std=c++0x %t
 
 /* This is a test of the various code modification hints that only
index 5854917da5c7d3b03a1409b3fdd28c4505eced2f..46e217c574cb6ebf351eabdba344bb9d0f72e06f 100644 (file)
@@ -1,9 +1,9 @@
 // Test this without pch.
-// RUN: %clang_cc1 -std=c++0x -include %S/cxx-for-range.h -fsyntax-only -emit-llvm -o - %s
+// RUN: %clang_cc1 -x c++ -std=c++0x -include %S/cxx-for-range.h -fsyntax-only -emit-llvm -o - %s
 
 // Test with pch.
-// RUN: %clang_cc1 -std=c++0x -emit-pch -o %t %S/cxx-for-range.h
-// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -emit-llvm -o - %s 
+// RUN: %clang_cc1 -x c++ -std=c++0x -emit-pch -o %t %S/cxx-for-range.h
+// RUN: %clang_cc1 -x c++ -std=c++0x -include-pch %t -fsyntax-only -emit-llvm -o - %s 
 
 void h() {
   f();
index 90d00d777c44f993ce671f1e03fe0a7f8bf12cff..2dfbcdc1382bfef9ca18149f3e8792b74e7e42d2 100644 (file)
@@ -1,6 +1,6 @@
 // Test this without pch.
-// RUN: %clang_cc1 -std=c++0x -include %S/cxx-reference.h -fsyntax-only -emit-llvm -o - %s
+// RUN: %clang_cc1 -x c++ -std=c++0x -include %S/cxx-reference.h -fsyntax-only -emit-llvm -o - %s
 
 // Test with pch.
-// RUN: %clang_cc1 -std=c++0x -emit-pch -o %t %S/cxx-reference.h
-// RUN: %clang_cc1 -std=c++0x -include-pch %t -fsyntax-only -emit-llvm -o - %s 
+// RUN: %clang_cc1 -x c++ -std=c++0x -emit-pch -o %t %S/cxx-reference.h
+// RUN: %clang_cc1 -x c++ -std=c++0x -include-pch %t -fsyntax-only -emit-llvm -o - %s 
index 3c59df8298c0a234d862ce33cc9e3c3483449e36..819b38a257c91ee8344ed7d7001d214399f98338 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
+// RUN: %clang_cc1 -fsyntax-only -verify -x c++ -std=c++98 %s
 
 void a (void []()); // expected-error{{'type name' declared as array of functions}}
 void b (void p[]()); // expected-error{{'p' declared as array of functions}}