summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/Unit/gcc_personality_test.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-17 10:19:32 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-17 10:19:32 +0000
commitc0c9968f1b46c8e68eedf0a41396b12ac16bf243 (patch)
tree66279a8c2b0f1cd786b934a35ef50fbe763011c9 /compiler-rt/test/Unit/gcc_personality_test.c
parent1d4172c52be01552d6d0f440a06d9b6c96bcc73c (diff)
downloadbcm5719-llvm-c0c9968f1b46c8e68eedf0a41396b12ac16bf243.tar.gz
bcm5719-llvm-c0c9968f1b46c8e68eedf0a41396b12ac16bf243.zip
Comment out broken tests and make the rest build in cmake build system.
llvm-svn: 84330
Diffstat (limited to 'compiler-rt/test/Unit/gcc_personality_test.c')
-rw-r--r--compiler-rt/test/Unit/gcc_personality_test.c40
1 files changed, 18 insertions, 22 deletions
diff --git a/compiler-rt/test/Unit/gcc_personality_test.c b/compiler-rt/test/Unit/gcc_personality_test.c
index 0ce1431c76f..7fe661b3219 100644
--- a/compiler-rt/test/Unit/gcc_personality_test.c
+++ b/compiler-rt/test/Unit/gcc_personality_test.c
@@ -1,11 +1,12 @@
-//===-- gcc_personality_test.c - Tests __gcc_personality_v0 -------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
+/* ===-- gcc_personality_test.c - Tests __gcc_personality_v0 -------------===
+ *
+ * The LLVM Compiler Infrastructure
+ *
+ * This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ *
+ * ===----------------------------------------------------------------------===
+ */
#include <stdlib.h>
@@ -19,28 +20,23 @@ extern void done_foo();
extern void done_bar();
-//
-// foo() is called by main() in gcc_personality_test_helper.cxx.
-// done_bar() is implemented in C++ and will throw an exception.
-// main() will catch the exception and verify that the cleanup
-// routines for foo() and bar() were called by the personality
-// function.
-//
+/*
+ * foo() is called by main() in gcc_personality_test_helper.cxx.
+ * done_bar() is implemented in C++ and will throw an exception.
+ * main() will catch the exception and verify that the cleanup
+ * routines for foo() and bar() were called by the personality
+ * function.
+ */
-
-void bar()
-{
+void bar() {
int x __attribute__((cleanup(bar_clean))) = 0;
register_bar_local(&x);
done_bar();
}
-void foo()
-{
+void foo() {
int x __attribute__((cleanup(foo_clean))) = 0;
register_foo_local(&x);
bar();
done_foo();
}
-
-
OpenPOWER on IntegriCloud