mangle.cpp revision c6c91bc019ff7fa09f6570025ba011aad4c0d004
1// RUN: clang-cc -emit-llvm %s -o %t && 2 3// FIXME: This test is intentionally trivial, because we can't yet 4// CodeGen anything real in C++. 5struct X { }; 6struct Y { }; 7 8// RUN: grep _ZplRK1YRA100_P1X %t | count 1 && 9bool operator+(const Y&, X* (&xs)[100]) { return false; } 10 11// 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) { } 22 23// RUN: grep _Z1f1x %t | count 1 24typedef struct { int a; } x,y; 25void f(y) { } 26 27// RUN: grep _Z1fv %t | count 1 28void f() { } 29