aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-17 20:23:22 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-17 20:23:22 +0000
commit5a5de6ea3962782b02221b96b27dd064b25d381f (patch)
tree6138b29ea914e803d8430f444a764b7d29f8df12 /packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two
parentb76161e41bc2c07cd47f9c61f875d1be95e26d10 (diff)
downloadsrc-5a5de6ea3962782b02221b96b27dd064b25d381f.tar.gz
src-5a5de6ea3962782b02221b96b27dd064b25d381f.zip
Vendor import of lldb trunk r303291:vendor/lldb/lldb-trunk-r303291
Notes
Notes: svn path=/vendor/lldb/dist/; revision=318424 svn path=/vendor/lldb/lldb-trunk-r303291/; revision=318425; tag=vendor/lldb/lldb-trunk-r303291
Diffstat (limited to 'packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two')
-rw-r--r--packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.c6
-rw-r--r--packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.h4
-rw-r--r--packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/TwoConstant.c1
3 files changed, 11 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.c b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.c
new file mode 100644
index 000000000000..8d8d668b8c31
--- /dev/null
+++ b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.c
@@ -0,0 +1,6 @@
+#include "Two.h"
+#include <stdio.h>
+
+void two() {
+ printf("Two\n"); // break here
+}
diff --git a/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.h b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.h
new file mode 100644
index 000000000000..8d5bd6a32330
--- /dev/null
+++ b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/Two.h
@@ -0,0 +1,4 @@
+#ifndef TWO_H
+#define TWO_H
+void two();
+#endif
diff --git a/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/TwoConstant.c b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/TwoConstant.c
new file mode 100644
index 000000000000..9fc7c4b79515
--- /dev/null
+++ b/packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Two/TwoConstant.c
@@ -0,0 +1 @@
+int __attribute__ ((visibility("hidden"))) conflicting_symbol = 22222;