mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 20:30:50 +00:00
Test case for noinline attribute.
llvm-svn: 37479
This commit is contained in:
parent
c5d0dc3554
commit
ed5daa8f3a
13
test/CFrontend/2007-06-05-NoInlineAttribute.c
Normal file
13
test/CFrontend/2007-06-05-NoInlineAttribute.c
Normal file
@ -0,0 +1,13 @@
|
||||
// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
|
||||
|
||||
int bar(int x, int y); __attribute__((noinline))
|
||||
|
||||
int bar(int x, int y)
|
||||
{
|
||||
return x + y;
|
||||
}
|
||||
|
||||
int foo(int a, int b) {
|
||||
return bar(b, a);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user