Daniel Dunbar | 3a9a3e1 | 2008-09-05 00:57:45 +0000 | [diff] [blame] | 1 | // 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 | |
| 7 | signed char f0(int x) { return x; } |
| 8 | |
| 9 | unsigned char f1(int x) { return x; } |
| 10 | |
| 11 | void f2(signed char x) { } |
| 12 | |
| 13 | void f3(unsigned char x) { } |
| 14 | |
| 15 | signed short f4(int x) { return x; } |
| 16 | |
| 17 | unsigned short f5(int x) { return x; } |
| 18 | |
| 19 | void f6(signed short x) { } |
| 20 | |
| 21 | void f7(unsigned short x) { } |
| 22 | |