summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/special/eeprof-1.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-29 06:03:42 -0700
committerYamaArashi <shadow962@live.com>2016-04-29 06:03:42 -0700
commit536c44e5e9612dc161e3da9d9f3f30e134e8242f (patch)
tree351aed8dc79f5d2f3bdb647405acb55e0e62b1d7 /gcc/testsuite/gcc.c-torture/special/eeprof-1.c
parent10f3c226cc227a9fc6d698599b630230be792de8 (diff)
delete test suite
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/special/eeprof-1.c')
-rwxr-xr-xgcc/testsuite/gcc.c-torture/special/eeprof-1.c67
1 files changed, 0 insertions, 67 deletions
diff --git a/gcc/testsuite/gcc.c-torture/special/eeprof-1.c b/gcc/testsuite/gcc.c-torture/special/eeprof-1.c
deleted file mode 100755
index 6dad7ec..0000000
--- a/gcc/testsuite/gcc.c-torture/special/eeprof-1.c
+++ /dev/null
@@ -1,67 +0,0 @@
-#define ASSERT(X) if (!(X)) abort ();
-#define NOCHK __attribute__ ((no_instrument_function))
-
-int entry_calls, exit_calls;
-void (*last_fn_entered)();
-void (*last_fn_exited)();
-
-int main () NOCHK;
-
-void foo ()
-{
- ASSERT (last_fn_entered == foo);
-}
-
-static void foo2 ()
-{
- ASSERT (entry_calls == 1 && exit_calls == 0);
- ASSERT (last_fn_entered == foo2);
- foo ();
- ASSERT (entry_calls == 2 && exit_calls == 1);
- ASSERT (last_fn_entered == foo);
- ASSERT (last_fn_exited == foo);
-}
-
-void nfoo (void) NOCHK;
-void nfoo ()
-{
- ASSERT (entry_calls == 2 && exit_calls == 2);
- ASSERT (last_fn_entered == foo);
- ASSERT (last_fn_exited == foo2);
- foo ();
- ASSERT (entry_calls == 3 && exit_calls == 3);
- ASSERT (last_fn_entered == foo);
- ASSERT (last_fn_exited == foo);
-}
-
-int main ()
-{
- ASSERT (entry_calls == 0 && exit_calls == 0);
-
- foo2 ();
-
- ASSERT (entry_calls == 2 && exit_calls == 2);
- ASSERT (last_fn_entered == foo);
- ASSERT (last_fn_exited == foo2);
-
- nfoo ();
-
- ASSERT (entry_calls == 3 && exit_calls == 3);
- ASSERT (last_fn_entered == foo);
-
- return 0;
-}
-
-void __cyg_profile_func_enter (void (*fn)(), void (*parent)()) NOCHK;
-void __cyg_profile_func_exit (void (*fn)(), void (*parent)()) NOCHK;
-
-void __cyg_profile_func_enter (void (*fn)(), void (*parent)())
-{
- entry_calls++;
- last_fn_entered = fn;
-}
-void __cyg_profile_func_exit (void (*fn)(), void (*parent)())
-{
- exit_calls++;
- last_fn_exited = fn;
-}