]> granicus.if.org Git - clang/commitdiff
Remove 'not' from some CodeGen tests
authorAlp Toker <alp@nuanti.com>
Sat, 14 Dec 2013 04:49:06 +0000 (04:49 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 14 Dec 2013 04:49:06 +0000 (04:49 +0000)
These were just missing an expected-no-diagnostics directive.

Also add -std=c++11 to a test warning noisly about extensions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197308 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/const-init-cxx1y.cpp
test/CodeGenCXX/cxx11-exception-spec.cpp
test/CodeGenCXX/delete-two-arg.cpp
test/CodeGenCXX/mangle-template.cpp

index 978c428e078a9351663d3d9f9f2dc3a41d7298e0..5dd15a35281d7dc9bef65d8d111a3fc9b2e0e4ad 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: not %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
+// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
+// expected-no-diagnostics
 
 struct A {
   constexpr A() : n(1) {}
index 96ea1d7f00edc1ec1b6caf7672a0ffeefcdc3d65..3b1516b925361b9fa0a40853edffb6431ac5ca35 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: not %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
+// expected-no-diagnostics
 
 void h();
 
index f8e6bff295804e1673f0fe3e16d6a7262e4f1119..be3cf1a900e6bba79d895ccf8609a205cee0e8f5 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: not %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
+// RUN: %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
+// expected-no-diagnostics
 
 typedef __typeof(sizeof(int)) size_t;
 
index 0c29a254bfe4c1ae43ee56ddf79e188a18d1f3a8..ad66c5d54770ca029c0d2563645bf31098c4f6a6 100644 (file)
@@ -1,4 +1,6 @@
-// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
+// RUN: %clang_cc1 -verify -Wno-return-type -Wno-main -std=c++11 -emit-llvm -cxx-abi itanium -o - %s | FileCheck %s
+// expected-no-diagnostics
+
 namespace test1 {
 int x;
 template <int& D> class T { };
@@ -156,7 +158,7 @@ namespace test11 {
 
 namespace test12 {
   // Make sure we can mangle non-type template args with internal linkage.
-  static int f();
+  static int f() {}
   const int n = 10;
   template<typename T, T v> void test() {}
   void use() {