blob: 89ed8c9ef6729454272ccb8c26515c0db59af92d [file] [log] [blame]
Daniel Dunbar025f80d2009-07-25 11:27:37 +00001// RUN: clang-cc -emit-llvm < %s | grep 'fastcallcc' | count 4 &&
Daniel Dunbard7d5f022009-03-24 02:24:46 +00002// RUN: clang-cc -emit-llvm < %s | grep 'stdcallcc' | count 4
Anton Korobeynikovf1c9c092008-11-11 20:21:14 +00003
4void __attribute__((fastcall)) f1(void);
5void __attribute__((stdcall)) f2(void);
6void __attribute__((fastcall)) f3(void) {
7 f1();
8}
9void __attribute__((stdcall)) f4(void) {
10 f2();
11}
12
13int main(void) {
14 f3(); f4();
15 return 0;
16}
17