summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle-unnamed.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-11-08 01:07:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-11-08 01:07:26 +0000
commit71e7eb6af6aefb1482ae1d5accab63efb911907d (patch)
treec898c36eafe31dba5687ef05cb923099fd683c32 /test/CodeGenCXX/mangle-unnamed.cpp
parentbddcf4b2eba87eb9a5513fc978f885895dd17591 (diff)
Correctly ignore unnamed bit-fields when checking whether a union has fields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-unnamed.cpp')
-rw-r--r--test/CodeGenCXX/mangle-unnamed.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle-unnamed.cpp b/test/CodeGenCXX/mangle-unnamed.cpp
index a62bdd5393..43b7bd7953 100644
--- a/test/CodeGenCXX/mangle-unnamed.cpp
+++ b/test/CodeGenCXX/mangle-unnamed.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
+// RUN: %clang_cc1 -std=c++98 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
+// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -triple=x86_64-apple-darwin10 | FileCheck %s
struct S {
virtual ~S() { }