[PATCH] Fix for Bug 19480 -- Adding a test case.

Richard Smith richard at metafoo.co.uk
Fri Jul 25 16:56:31 PDT 2014


LGTM with one thing fixed.

================
Comment at: test/CodeGenCXX/cxx1y-variable-template-linkage.cpp:1-2
@@ +1,3 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -std=c++1y -O1 -disable-llvm-optzns %s -o - | FileCheck %s -check-prefix=CHECKA
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -std=c++1y -O1 -disable-llvm-optzns -fcxx-exceptions %s -o - | FileCheck %s -check-prefix=CHECKB
+// expected-no-diagnostics
----------------
Please add `--check-prefix=CHECK` to both of these `FileCheck` invocations. Otherwise, your `CHECK-DAG:` lines below will have no effect.

http://reviews.llvm.org/D4362






More information about the cfe-commits mailing list