Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2009-05-22-callingconv.c
blob44467351d85028ed48da7c9790728ac11dd0aec8
1 // RUN: %clang_cc1 %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(void)
24 return re_string_construct(0, 0, 0, 0, 0, (void*)0x282020c0);