[llvm-commits] CVS: llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c

Tanya Lattner tonic at nondot.org
Wed Jun 6 13:52:37 PDT 2007



Changes in directory llvm/test/CFrontend:

2007-06-05-NoInlineAttribute.c added (r1.1)
---
Log message:

Test case for noinline attribute.


---
Diffs of the changes:  (+13 -0)

 2007-06-05-NoInlineAttribute.c |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c
diff -c /dev/null llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c:1.1
*** /dev/null	Wed Jun  6 15:52:27 2007
--- llvm/test/CFrontend/2007-06-05-NoInlineAttribute.c	Wed Jun  6 15:52:16 2007
***************
*** 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);
+ }
+ 






More information about the llvm-commits mailing list