diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 06:48:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-18 06:48:06 +0000 |
commit | 32f75c6a42eca5f9045f13d3346cb7b36238973e (patch) | |
tree | 12cd152be2e248a15672825c0228dc63153e9764 | |
parent | 3d1a09552c7c85e11b3a7c338fbb7259118f68c1 (diff) | |
download | bcm5719-llvm-32f75c6a42eca5f9045f13d3346cb7b36238973e.tar.gz bcm5719-llvm-32f75c6a42eca5f9045f13d3346cb7b36238973e.zip |
Unbreak trampoline test.
llvm-svn: 93711
-rw-r--r-- | compiler-rt/test/Unit/trampoline_setup_test.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/compiler-rt/test/Unit/trampoline_setup_test.c b/compiler-rt/test/Unit/trampoline_setup_test.c index 60c3653cbe0..8d1c968b274 100644 --- a/compiler-rt/test/Unit/trampoline_setup_test.c +++ b/compiler-rt/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 |