]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2002-02-13-TypeVarNameCollision.c
Vendor import of clang RELEASE_360/rc2 tag r227651 (effectively, 3.6.0 RC2):
[FreeBSD/FreeBSD.git] / test / CodeGen / 2002-02-13-TypeVarNameCollision.c
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2
3 /* This testcase causes a symbol table collision.  Type names and variable
4  * names should be in distinct namespaces
5  */
6
7 typedef struct foo {
8   int X, Y;
9 } FOO;
10
11 static FOO foo[100];
12
13 int test() {
14   return foo[4].Y;
15 }
16