2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | grep inreg | count 2
|
2009-04-04 08:49:38 +08:00
|
|
|
|
|
|
|
#define FASTCALL __attribute__((regparm(2)))
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int aaa;
|
|
|
|
double bbbb;
|
|
|
|
int ccc[200];
|
|
|
|
} foo;
|
|
|
|
|
|
|
|
static void FASTCALL
|
2009-09-09 23:08:12 +08:00
|
|
|
reduced(char b, double c, foo* d, double e, int f) {
|
2009-04-04 08:49:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
main(void) {
|
2009-09-09 23:08:12 +08:00
|
|
|
reduced(0, 0.0, 0, 0.0, 0);
|
2009-04-04 08:49:38 +08:00
|
|
|
}
|