brintos

brintos / llvm-project-archived public Read only

0
0
Text · 599 B · f79d814 Raw
13 lines · c
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -DTEST -fsyntax-only -verify %s2// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fsyntax-only -verify %s3 4#if TEST5void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention is not supported for this target}}6void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention is not supported for this target}}7}8#else9//expected-no-diagnostics10void (__attribute__((regparm(3), stdcall)) *pf) ();11void (__attribute__((regparm(2), stdcall)) foo)(int a) {}12#endif13