summaryrefslogtreecommitdiff
path: root/test/old-elf/Inputs/rodata.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/old-elf/Inputs/rodata.c')
-rw-r--r--test/old-elf/Inputs/rodata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/old-elf/Inputs/rodata.c b/test/old-elf/Inputs/rodata.c
new file mode 100644
index 000000000000..b43c9c945898
--- /dev/null
+++ b/test/old-elf/Inputs/rodata.c
@@ -0,0 +1,4 @@
+const unsigned char *str = "llvm";
+int foo() {
+ return str[0];
+}