blob: bb482a043d9b2b74d7337040ebfeca7f7d132382 [file] [log] [blame]
Daniel Dunbar3a9a3e12008-09-05 00:57:45 +00001// RUN: clang -emit-llvm -o %t.clang.ll %s &&
2// RUN: %llvmgcc -c --emit-llvm -o - %s | llvm-dis -f -o %t.gcc.ll &&
3// RUN: grep "define" %t.clang.ll | sort > %t.clang.defs &&
4// RUN: grep "define" %t.gcc.ll | sort > %t.gcc.defs &&
5// RUN: diff %t.clang.defs %t.gcc.defs
6
7signed char f0(int x) { return x; }
8
9unsigned char f1(int x) { return x; }
10
11void f2(signed char x) { }
12
13void f3(unsigned char x) { }
14
15signed short f4(int x) { return x; }
16
17unsigned short f5(int x) { return x; }
18
19void f6(signed short x) { }
20
21void f7(unsigned short x) { }
22