Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Index / Core / designated-inits.c
bloba31cb95a4b82db751503d36c3a8e7700273ed9c4
1 // RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
3 struct MyStruct {
4 int myfield;
5 };
7 enum {
8 MyValToSet
9 };
11 // CHECK: [[@LINE+1]]:14 | struct/C | MyStruct |
12 const struct MyStruct _MyStruct[]
13 [16]
14 [3]
15 [3]
16 [2]
17 [2] = {
18 [0] = {
19 [0] = {
20 [0] = {
21 [0][0] = {
22 [0] = {
23 // CHECK: [[@LINE+2]]:14 | field/C | myfield | {{.*}} | Ref,RelCont |
24 // CHECK: [[@LINE+1]]:24 | enumerator/C | MyValToSet |
25 .myfield = MyValToSet,
26 // CHECK-NOT: | field/C | myfield |
27 // CHECK-NOT: | enumerator/C | MyValToSet |