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; |
17 | { |
18 | if (dfa != (void*)0x282020c0) |
19 | abort(); |
20 | return 0; |
21 | } |
22 | int main() |
23 | { |
24 | return re_string_construct(0, 0, 0, 0, 0, (void*)0x282020c0); |
25 | } |
26 | |