summaryrefslogtreecommitdiff
path: root/util/romcc/tests/linux_test12.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-28 16:14:56 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-12-27 09:00:16 +0000
commit945b698f82279fdb42f83f6a3eb2e6f74db2869c (patch)
tree3eac3bd7ec5032441081d89a370acddf8f3e5f5b /util/romcc/tests/linux_test12.c
parentc2092569d5d21e0cdd3690d8021c2d46dfeaeabd (diff)
util/romcc: Drop romcc support
Finally all boards use a GCC compiled bootblock! Change-Id: I0c9a1b19dbdc32b43875da7d685718bae9d7f5f4 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37337 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/romcc/tests/linux_test12.c')
-rw-r--r--util/romcc/tests/linux_test12.c70
1 files changed, 0 insertions, 70 deletions
diff --git a/util/romcc/tests/linux_test12.c b/util/romcc/tests/linux_test12.c
deleted file mode 100644
index 5503aa05f0..0000000000
--- a/util/romcc/tests/linux_test12.c
+++ /dev/null
@@ -1,70 +0,0 @@
-#include "linux_syscall.h"
-#include "linux_console.h"
-
-#define MACRO(hello, hello2) 1
-
-#ifndef A
-#define A 135
-#endif
-#define B A
-#define C B
-#define D C
-#define E D
-#define F E
-#define G F
-#define H G
-#define I H
-
-#define FOO() "hah?\n"
-#define BAR(X) ( X " There\n" )
-#define BAZ(X) #X
-#define SUM(X, Y) ((X) + (Y))
-#define REALLY_SUM(...) SUM(__VA_ARGS__)
-
-
-#define hash_hash # /* comment */ ## #
-#define mkstr(a) # a
-#define in_between(a) mkstr(a)
-#define join(c, d) in_between(c hash_hash d)
-
-#define ECHO(X) X
-#define print_debug(X) ECHO(print_debug(X))
-
-static void test(void)
-{
- print_debug(FOO());
- print_debug(BAR("Hi!!"));
- print_debug(BAZ(This should be shown as a string... "enclosed in quotes") "\n");
- print_debug("This is a quote\" see\n");
- print_debug(BAR(BAZ(I)));
-
- print_debug_hex32(REALLY_SUM(1,2));
- print_debug("\n");
-
- print_debug(join(x, y) "\n");
-
- print_debug("romcc: ");
- print_debug_hex8(__ROMCC__);
- print_debug(".");
- print_debug_hex8(__ROMCC_MINOR__);
- print_debug("\n");
-
- print_debug(__FILE__);
- print_debug(":");
- print_debug(__func__);
- print_debug(":");
- print_debug_hex32(__LINE__);
- print_debug("\n");
-
- print_debug("Compiled at: ");
- print_debug(__DATE__);
- print_debug(" ");
- print_debug(__TIME__);
- print_debug("\n");
-
- print_debug("Compile time: ");
- print_debug(__TIME__);
- print_debug("\n");
-
- _exit(0);
-}