brintos

brintos / llvm-project-archived public Read only

0
0
Text · 765 B · 4446735 Raw
26 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - -triple i386-unknown-unknown | grep call | grep x86_stdcallcc2void 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_t11re_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(void)23{24  return re_string_construct(0, 0, 0, 0, 0, (void*)0x282020c0);25}26