1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10 2*f4a2713aSLionel Sambuc // RUN: FileCheck %s < %t-c++11.ll 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -std=c++98 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10 4*f4a2713aSLionel Sambuc // RUN: diff %t.ll %t-c++11.ll 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc // rdar://12897704 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc struct sAFSearchPos { 9*f4a2713aSLionel Sambuc unsigned char *pos; 10*f4a2713aSLionel Sambuc unsigned char count; 11*f4a2713aSLionel Sambuc }; 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc static volatile struct sAFSearchPos testPositions; 14*f4a2713aSLionel Sambuc // CHECK: @_ZL13testPositions = internal global %struct.sAFSearchPos zeroinitializer 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc static volatile struct sAFSearchPos arrayPositions[100][10][5]; 17*f4a2713aSLionel Sambuc // CHECK: @_ZL14arrayPositions = internal global [100 x [10 x [5 x %struct.sAFSearchPos]]] zeroinitializer 18*f4a2713aSLionel Sambuc main()19*f4a2713aSLionel Sambucint main() { 20*f4a2713aSLionel Sambuc return testPositions.count + arrayPositions[10][4][3].count; 21*f4a2713aSLionel Sambuc } 22