brintos

brintos / llvm-project-archived public Read only

0
0
Text · 751 B · 5badf62 Raw
76 lines · c
1namespace RedeclAcrossImport {2  enum E { e };3}4 5namespace AddAndReexportBeforeImport {6  struct S {};7  extern struct S t;8}9 10@import namespaces_top;11 12namespace RedeclAcrossImport {13  E x = e;14}15 16float &global(float);17float &global2(float);18 19namespace LookupBeforeImport {20  float &f(float);21}22 23namespace N1 { }24 25namespace N1 { 26  float& f(float);27}28 29namespace N2 { 30  float& f(float);31}32 33 34 35 36 37namespace N5 {38  int &f(int);39}40 41namespace N6 {42  int &f(int);43}44 45namespace N7 {46  int &f(int);47}48 49namespace N8 {50  int &f(int);51}52 53namespace N9 {54  int &f(int);55}56 57namespace N10 {58  int &f(int);59}60 61namespace N11 {62  namespace {63    class Foo;64  }65  Foo *getFoo();66}67 68namespace N12 {69  namespace {70    class Foo;71  }72  Foo *getFoo();73}74 75namespace Empty {}76