mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 14:58:59 -04:00

clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
21 lines
418 B
C
21 lines
418 B
C
// RUN: %clang -emit-llvm -S -o %t %s
|
|
// RUN: not grep '@f0' %t
|
|
// RUN: not grep 'call ' %t
|
|
// RUN: %clang -mllvm -disable-llvm-optzns -emit-llvm -S -o %t %s
|
|
// RUN: grep '@f0' %t | count 2
|
|
|
|
//static int f0() {
|
|
static int __attribute__((always_inline)) f0() {
|
|
return 1;
|
|
}
|
|
|
|
int f1() {
|
|
return f0();
|
|
}
|
|
|
|
// PR4372
|
|
inline int f2() __attribute__((always_inline));
|
|
int f2() { return 7; }
|
|
int f3(void) { return f2(); }
|
|
|