summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-18 06:48:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-18 06:48:06 +0000
commit26d53d047263ca5f5afd81b0c0ecc6d35acebf53 (patch)
treebd870468bfc5333869c7a52cf28aaf3d45731189 /test
parent557a6eace292091d14419a334e8d62d9ec9e772b (diff)
downloadcompiler-rt-26d53d047263ca5f5afd81b0c0ecc6d35acebf53.tar.gz
compiler-rt-26d53d047263ca5f5afd81b0c0ecc6d35acebf53.tar.bz2
compiler-rt-26d53d047263ca5f5afd81b0c0ecc6d35acebf53.tar.xz
Unbreak trampoline test.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@93711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Unit/trampoline_setup_test.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/Unit/trampoline_setup_test.c b/test/Unit/trampoline_setup_test.c
index 60c3653c..8d1c968b 100644
--- a/test/Unit/trampoline_setup_test.c
+++ b/test/Unit/trampoline_setup_test.c
@@ -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 @@ int main()
return 0;
}
-#endif /* __clang__ */
+#else
+
+int main() {
+ return 0;
+}
+
+#endif