brintos

brintos / llvm-project-archived public Read only

0
0
Text · 455 B · 1c17fed Raw
6 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-pc-win32 -Wgcc-compat -std=c++11 -verify %s2 3void f() [[gnu::cdecl]] {}  // expected-warning {{GCC does not allow the 'gnu::cdecl' attribute to be written on a type}}4void g() [[gnu::stdcall]] {}  // expected-warning {{GCC does not allow the 'gnu::stdcall' attribute to be written on a type}}5void i() [[gnu::fastcall]] {}  // expected-warning {{GCC does not allow the 'gnu::fastcall' attribute to be written on a type}}6