summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/visibility-inlines-hidden.cpp')
-rw-r--r--clang/test/CodeGenCXX/visibility-inlines-hidden.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp b/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
index 0681adda839..e5bc743e4da 100644
--- a/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
+++ b/clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown -fvisibility-inlines-hidden -emit-llvm -o - %s -O2 -disable-llvm-optzns | FileCheck %s
+// RUN: %clang_cc1 -triple i386-unknown-unknown -std=c++11 -fvisibility-inlines-hidden -emit-llvm -o - %s -O2 -disable-llvm-optzns | FileCheck %s
// The trickery with optimization in the run line is to get IR
// generation to emit available_externally function bodies, but not
@@ -147,3 +147,18 @@ namespace test5 {
template <int Idx_nocapture> void Op() {
}
}
+
+namespace test6 {
+ // just don't crash.
+ template <typename T>
+ void f(T x) {
+ }
+ struct C {
+ static void g() {
+ f([](){});
+ }
+ };
+ void g() {
+ C::g();
+ }
+}
OpenPOWER on IntegriCloud