Denis Zobnin | f49c0f8 | 2016-02-10 11:23:48 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -DTEST -fsyntax-only -verify %s |
| 2 | // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fsyntax-only -verify %s |
| 3 | |
| 4 | #if TEST |
Erich Keane | 505427c | 2019-03-21 13:30:56 +0000 | [diff] [blame] | 5 | void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention ignored for this target}} |
| 6 | void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention ignored for this target}} |
Denis Zobnin | f49c0f8 | 2016-02-10 11:23:48 +0000 | [diff] [blame] | 7 | } |
| 8 | #else |
| 9 | //expected-no-diagnostics |
| 10 | void (__attribute__((regparm(3), stdcall)) *pf) (); |
| 11 | void (__attribute__((regparm(2), stdcall)) foo)(int a) {} |
| 12 | #endif |