blob: 28dfae7f628b796f1ac28f648c81e93cee9e0996 [file] [log] [blame]
Anton Korobeynikov980d60a2009-04-04 00:49:38 +00001// RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o - | grep inreg | count 2
2
3#define FASTCALL __attribute__((regparm(2)))
4
5typedef struct {
6 int aaa;
7 double bbbb;
8 int ccc[200];
9} foo;
10
11static void FASTCALL
Mike Stump1eb44332009-09-09 15:08:12 +000012reduced(char b, double c, foo* d, double e, int f) {
Anton Korobeynikov980d60a2009-04-04 00:49:38 +000013}
14
15int
16main(void) {
Mike Stump1eb44332009-09-09 15:08:12 +000017 reduced(0, 0.0, 0, 0.0, 0);
Anton Korobeynikov980d60a2009-04-04 00:49:38 +000018}