Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm < %s | grep 'fastcallcc' | count 4 |
2 | // RUN: clang-cc -emit-llvm < %s | grep 'stdcallcc' | count 4 | ||||
Anton Korobeynikov | f1c9c09 | 2008-11-11 20:21:14 +0000 | [diff] [blame] | 3 | |
4 | void __attribute__((fastcall)) f1(void); | ||||
5 | void __attribute__((stdcall)) f2(void); | ||||
6 | void __attribute__((fastcall)) f3(void) { | ||||
7 | f1(); | ||||
8 | } | ||||
9 | void __attribute__((stdcall)) f4(void) { | ||||
10 | f2(); | ||||
11 | } | ||||
12 | |||||
13 | int main(void) { | ||||
14 | f3(); f4(); | ||||
15 | return 0; | ||||
16 | } | ||||
17 |