[llvm-branch-commits] [llvm-branch] r71690 - in /llvm/branches/Apple/Dib/test: FrontendC++/2009-05-04-PureConstNounwind.cpp FrontendC/2009-05-04-EnumInreg.c
Bill Wendling
isanbard at gmail.com
Wed May 13 11:30:12 PDT 2009
Author: void
Date: Wed May 13 13:30:07 2009
New Revision: 71690
URL: http://llvm.org/viewvc/llvm-project?rev=71690&view=rev
Log:
Add missing tests.
Added:
llvm/branches/Apple/Dib/test/FrontendC++/2009-05-04-PureConstNounwind.cpp
llvm/branches/Apple/Dib/test/FrontendC/2009-05-04-EnumInreg.c
Added: llvm/branches/Apple/Dib/test/FrontendC++/2009-05-04-PureConstNounwind.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/FrontendC%2B%2B/2009-05-04-PureConstNounwind.cpp?rev=71690&view=auto
==============================================================================
--- llvm/branches/Apple/Dib/test/FrontendC++/2009-05-04-PureConstNounwind.cpp (added)
+++ llvm/branches/Apple/Dib/test/FrontendC++/2009-05-04-PureConstNounwind.cpp Wed May 13 13:30:07 2009
@@ -0,0 +1,8 @@
+// RUN: %llvmgxx -S -emit-llvm %s -o - | grep nounwind | count 4
+int c(void) __attribute__((const));
+int p(void) __attribute__((pure));
+int t(void);
+
+int f(void) {
+ return c() + p() + t();
+}
Added: llvm/branches/Apple/Dib/test/FrontendC/2009-05-04-EnumInreg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/FrontendC/2009-05-04-EnumInreg.c?rev=71690&view=auto
==============================================================================
--- llvm/branches/Apple/Dib/test/FrontendC/2009-05-04-EnumInreg.c (added)
+++ llvm/branches/Apple/Dib/test/FrontendC/2009-05-04-EnumInreg.c Wed May 13 13:30:07 2009
@@ -0,0 +1,17 @@
+// RUN: %llvmgcc -S -m32 -mregparm=3 %s -emit-llvm -o - | grep {inreg %action}
+// XTARGET: x86
+// PR3967
+
+enum kobject_action {
+ KOBJ_ADD,
+ KOBJ_REMOVE,
+ KOBJ_CHANGE,
+ KOBJ_MOVE,
+ KOBJ_ONLINE,
+ KOBJ_OFFLINE,
+ KOBJ_MAX
+};
+
+struct kobject;
+
+int kobject_uevent(struct kobject *kobj, enum kobject_action action) {}
More information about the llvm-branch-commits
mailing list