blob: 43b1da61ee9004b48418bf751f4ae82d88abc593 [file] [log] [blame]
Rafael Espindola264ba482010-03-30 20:24:48 +00001// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
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) {
Rafael Espindola264ba482010-03-30 20:24:48 +000017 // CHECK: call void @reduced(i8 signext inreg 0, double 0.000000e+00, %struct.anon* inreg null, double 0.000000e+00, i32 0)
Mike Stump1eb44332009-09-09 15:08:12 +000018 reduced(0, 0.0, 0, 0.0, 0);
Anton Korobeynikov980d60a2009-04-04 00:49:38 +000019}