summaryrefslogtreecommitdiffstats
path: root/test/Sema/callingconv.c
blob: cb69c59c403a8c6bc480392d9931b9f8420b9e57 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang-cc %s -fsyntax-only -verify

void __attribute__((fastcall)) foo(float *a) { 
}

void __attribute__((stdcall)) bar(float *a) { 
}

void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{attribute requires 0 argument(s)}}
}
OpenPOWER on IntegriCloud