1ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao// RUN: %clang_cc1 -emit-llvm %s -o %t
2ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
3ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaoconst int globalInt = 1;
4ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaoint globalIntWithFloat = 1.5f;
5ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaoint globalIntArray[5] = { 1, 2 };
6ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaoint globalIntFromSizeOf = sizeof(globalIntArray);
7ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaochar globalChar = 'a';
8ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaochar globalCharArray[5] = { 'a', 'b' };
9ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaofloat globalFloat = 1.0f;
10ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaofloat globalFloatWithInt = 1;
11ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaofloat globalFloatArray[5] = { 1.0f, 2.0f };
12ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaodouble globalDouble = 1.0;
13ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaodouble globalDoubleArray[5] = { 1.0, 2.0 };
14ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaochar *globalString = "abc";
15ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaochar *globalStringArray[5] = { "123", "abc" };
16ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaolong double globalLongDouble = 1;
17ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaolong double globalLongDoubleArray[5] = { 1.0, 2.0 };
18ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
19ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaostruct Struct {
20ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao  int member1;
21ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao  float member2;
22ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao  char *member3;
23ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao};
24ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
25ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liaostruct Struct globalStruct = { 1, 2.0f, "foobar"};
26