aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/function-attributes.c
blob: bb482a043d9b2b74d7337040ebfeca7f7d132382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: clang -emit-llvm -o %t.clang.ll %s &&
// RUN: %llvmgcc -c --emit-llvm -o - %s | llvm-dis -f -o %t.gcc.ll &&
// RUN: grep "define" %t.clang.ll | sort > %t.clang.defs &&
// RUN: grep "define" %t.gcc.ll | sort > %t.gcc.defs &&
// RUN: diff %t.clang.defs %t.gcc.defs

signed char f0(int x) { return x; }

unsigned char f1(int x) { return x; }

void f2(signed char x) { }

void f3(unsigned char x) { }

signed short f4(int x) { return x; }

unsigned short f5(int x) { return x; }

void f6(signed short x) { }

void f7(unsigned short x) { }