Add include needed for MSVC.
[clang/acc.git] / test / CodeGen / 2009-05-22-callingconv.c
blob8afc656843ea617b7e338c703edb99bafe0fb607
1 // RUN: clang-cc %s -emit-llvm -o - -triple i386-unknown-unknown | grep call | grep x86_stdcallcc
2 void abort(void) __attribute__((__noreturn__));
3 typedef void re_string_t;
4 typedef void re_dfa_t;
5 typedef int reg_errcode_t;
6 static 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));
10 static reg_errcode_t
11 re_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;
18 if (dfa != (void*)0x282020c0)
19 abort();
20 return 0;
22 int main()
24 return re_string_construct(0, 0, 0, 0, 0, (void*)0x282020c0);