[llvm-commits] [compiler-rt] r93711 - /compiler-rt/trunk/test/Unit/trampoline_setup_test.c

Daniel Dunbar daniel at zuster.org
Sun Jan 17 22:48:06 PST 2010


Author: ddunbar
Date: Mon Jan 18 00:48:06 2010
New Revision: 93711

URL: http://llvm.org/viewvc/llvm-project?rev=93711&view=rev
Log:
Unbreak trampoline test.

Modified:
    compiler-rt/trunk/test/Unit/trampoline_setup_test.c

Modified: compiler-rt/trunk/test/Unit/trampoline_setup_test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/Unit/trampoline_setup_test.c?rev=93711&r1=93710&r2=93711&view=diff

==============================================================================
--- compiler-rt/trunk/test/Unit/trampoline_setup_test.c (original)
+++ compiler-rt/trunk/test/Unit/trampoline_setup_test.c Mon Jan 18 00:48:06 2010
@@ -24,14 +24,13 @@
  * Note that, nested functions are not ISO C and are not supported in Clang.
  */
 
-#ifdef __gcc__ && !__clang__
+#if !defined(__clang__)
 
 typedef int (*nested_func_t)(int x);
 
 nested_func_t proc;
 
-int main()
-{
+int main() {
     /* Some locals */
     int c = 10;
     int d = 7;
@@ -55,4 +54,10 @@
     return 0;
 }
 
-#endif /* __clang__ */
+#else
+
+int main() {
+  return 0;
+}
+
+#endif





More information about the llvm-commits mailing list