blob: 5c38d1721136e4f743a4d833bf4f8b614758d80c [file] [log] [blame]
Anders Carlssonb1d947b2009-03-07 23:57:03 +00001// RUN: clang -emit-llvm %s -o %t &&
Douglas Gregor5f2bfd42009-02-13 00:10:09 +00002
3// FIXME: This test is intentionally trivial, because we can't yet
4// CodeGen anything real in C++.
5struct X { };
6struct Y { };
Anders Carlssonb1d947b2009-03-07 23:57:03 +00007
8// RUN: grep _ZplRK1YRA100_P1X %t | count 1 &&
Douglas Gregor5f2bfd42009-02-13 00:10:09 +00009bool operator+(const Y&, X* (&xs)[100]) { return false; }
10
Anders Carlssonb1d947b2009-03-07 23:57:03 +000011// RUN: grep _Z1f1s %t | count 1 &&
12typedef struct { int a; } s;
13void f(s) { }
14
15// RUN: grep _Z1f1e %t| count 1 &&
16typedef enum { foo } e;
17void f(e) { }
18
Anders Carlsson4843e582009-03-10 17:07:44 +000019// RUN: grep _Z1f1u %t | count 1 &&
Anders Carlssonb1d947b2009-03-07 23:57:03 +000020typedef union { int a; } u;
21void f(u) { }
Anders Carlsson4843e582009-03-10 17:07:44 +000022
23// RUN: grep _Z1f1x %t | count 1
24typedef struct { int a; } x,y;
25void f(y) { }
26