blob: 1c98df590bcf76d6d03541e8af86fb283d6683cb [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
19// RUN: grep _Z1f1u %t | count 1
20typedef union { int a; } u;
21void f(u) { }