blob: 3e616d9bea46bf8053ab8adcc498214792e7b540 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-llvm -o - -triple i386-unknown-unknown | grep call | grep x86_stdcallcc
Torok Edwin6857d9d2009-05-22 07:25:06 +00002void abort(void) __attribute__((__noreturn__));
3typedef void re_string_t;
4typedef void re_dfa_t;
5typedef int reg_errcode_t;
6static reg_errcode_t re_string_construct (re_string_t *pstr, const char *str,
7 int len, char * trans,
8 int icase, const re_dfa_t *dfa)
9 __attribute__ ((regparm (3), stdcall));
10static reg_errcode_t
11re_string_construct (pstr, str, len, trans, icase, dfa)
12 re_string_t *pstr;
13 const char *str;
14 int len, icase;
15 char * trans;
16 const re_dfa_t *dfa;
17{
18 if (dfa != (void*)0x282020c0)
19 abort();
20return 0;
21}
22int main()
23{
24 return re_string_construct(0, 0, 0, 0, 0, (void*)0x282020c0);
25}