[cfe-commits] r172154 - /cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp

Fariborz Jahanian fjahanian at apple.com
Thu Jan 10 16:55:45 PST 2013


Author: fjahanian
Date: Thu Jan 10 18:55:44 2013
New Revision: 172154

URL: http://llvm.org/viewvc/llvm-project?rev=172154&view=rev
Log:
Improve on my last test for patch for // rdar://12897704

Modified:
    cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp

Modified: cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp?rev=172154&r1=172153&r2=172154&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp Thu Jan 10 18:55:44 2013
@@ -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 @@
 };
 
 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; 





More information about the cfe-commits mailing list