blob: ac3797547d9999327f63db0e52298f795bf1d53f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | grep inreg | count 2
Anton Korobeynikov980d60a2009-04-04 00:49:38 +00002
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}