Anton Korobeynikov | 980d60a | 2009-04-04 00:49:38 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o - | grep inreg | count 2 |
2 | |||||
3 | #define FASTCALL __attribute__((regparm(2))) | ||||
4 | |||||
5 | typedef struct { | ||||
6 | int aaa; | ||||
7 | double bbbb; | ||||
8 | int ccc[200]; | ||||
9 | } foo; | ||||
10 | |||||
11 | static void FASTCALL | ||||
12 | reduced(char b, double c, foo* d, double e, int f) | ||||
13 | { | ||||
14 | } | ||||
15 | |||||
16 | int | ||||
17 | main(void) { | ||||
18 | reduced(0, 0.0, 0, 0.0, 0); | ||||
19 | } |