]> granicus.if.org Git - clang/commitdiff
Improve on my last test for patch for // rdar://12897704
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 11 Jan 2013 00:55:44 +0000 (00:55 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 11 Jan 2013 00:55:44 +0000 (00:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172154 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp

index f38d01a4678e1d91ca5cedabecbbc66ecbfa3b5b..881a12ec8c01cb92b48fee10608e20842eecb38e 100644 (file)
@@ -1,3 +1,4 @@
+// RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o - %s -triple x86_64-apple-darwin10 | FileCheck %s
 // RUN: %clang_cc1 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10 
 // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10 
 // RUN: diff %t.ll  %t-c++11.ll
@@ -10,8 +11,10 @@ struct sAFSearchPos {
 };
 
 static volatile struct sAFSearchPos testPositions;
+// CHECK: @_ZL13testPositions = internal global %struct.sAFSearchPos zeroinitializer
 
 static volatile struct sAFSearchPos arrayPositions[100][10][5];
+// CHECK: @_ZL14arrayPositions = internal global [100 x [10 x [5 x %struct.sAFSearchPos]]] zeroinitializer
 
 int main() {
   return testPositions.count + arrayPositions[10][4][3].count;