[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / cxx11-trivial-initializer-struct.cpp
blob5b6bf6cca73a59c3a2ff4aada4da02f6f1a4ca8e
1 // RUN: %clang_cc1 -std=c++11 -S -emit-llvm -o %t-c++11.ll %s -triple x86_64-apple-darwin10
2 // RUN: FileCheck %s < %t-c++11.ll
3 // RUN: %clang_cc1 -std=c++17 -S -emit-llvm -o %t-c++17.ll %s -triple x86_64-apple-darwin10
4 // RUN: FileCheck %s < %t-c++17.ll
5 // RUN: %clang_cc1 -std=c++98 -S -emit-llvm -o %t.ll %s -triple x86_64-apple-darwin10
6 // RUN: %clang_cc1 -std=c++03 -S -emit-llvm -o %t-c++03.ll %s -triple x86_64-apple-darwin10
7 // RUN: diff %t-c++11.ll %t-c++17.ll
8 // RUN: diff %t.ll %t-c++03.ll
10 struct sAFSearchPos {
11 unsigned char *pos;
12 unsigned char count;
15 static volatile struct sAFSearchPos testPositions;
16 // CHECK: @_ZL13testPositions = internal global %struct.sAFSearchPos zeroinitializer
18 static volatile struct sAFSearchPos arrayPositions[100][10][5];
19 // CHECK: @_ZL14arrayPositions = internal global [100 x [10 x [5 x %struct.sAFSearchPos]]] zeroinitializer
21 int main() {
22 return testPositions.count + arrayPositions[10][4][3].count;