mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
18 lines
365 B
C
18 lines
365 B
C
// RUN: %clang_cc1 -emit-llvm < %s | grep 'fastcallcc' | count 4
|
|
// RUN: %clang_cc1 -emit-llvm < %s | grep 'stdcallcc' | count 4
|
|
|
|
void __attribute__((fastcall)) f1(void);
|
|
void __attribute__((stdcall)) f2(void);
|
|
void __attribute__((fastcall)) f3(void) {
|
|
f1();
|
|
}
|
|
void __attribute__((stdcall)) f4(void) {
|
|
f2();
|
|
}
|
|
|
|
int main(void) {
|
|
f3(); f4();
|
|
return 0;
|
|
}
|
|
|