summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-07 00:32:15 +0000
committerChris Lattner <sabre@nondot.org>2007-01-07 00:32:15 +0000
commitf6e91576dc56a17836a1ce5f55f8480bf2ab7a01 (patch)
treef28a13c1a7385865a7a2dbc45f3646fe28a33a9f
parent6a10713feac3b00c2fa1ad4c2f32bd282c4fc560 (diff)
downloadbcm5719-llvm-f6e91576dc56a17836a1ce5f55f8480bf2ab7a01.tar.gz
bcm5719-llvm-f6e91576dc56a17836a1ce5f55f8480bf2ab7a01.zip
Testcase for PR1085
llvm-svn: 32968
-rw-r--r--llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp b/llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp
new file mode 100644
index 00000000000..b1fb0dbd6b1
--- /dev/null
+++ b/llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp
@@ -0,0 +1,50 @@
+// RUN: %llvmgxx %s -emit-llvm -S -o - &&
+// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'gnu.linkonce.'
+// PR1085
+
+class
+__attribute__((visibility("default"))) QGenericArgument
+{
+ public:inline QGenericArgument(const char *aName = 0, const void *aData = 0):_data(aData), _name(aName) {
+ }
+ private:const void *_data;
+ const char *_name;
+};
+struct __attribute__ ((
+ visibility("default"))) QMetaObject
+{
+ struct {
+ }
+ d;
+};
+class
+__attribute__((visibility("default"))) QObject
+{
+ virtual const QMetaObject *metaObject() const;
+};
+class
+__attribute__((visibility("default"))) QPaintDevice
+{
+ public:enum PaintDeviceMetric {
+ PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM, PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY, PdmPhysicalDpiX, PdmPhysicalDpiY
+ };
+ virtual ~ QPaintDevice();
+ union {
+ }
+ ct;
+};
+class
+__attribute__((visibility("default"))) QWidget:public QObject, public QPaintDevice
+{
+};
+class
+__attribute__((visibility("default"))) QDialog:public QWidget
+{
+};
+class TopicChooser:public QDialog {
+ virtual const QMetaObject *metaObject() const;
+};
+const QMetaObject *TopicChooser::
+metaObject() const
+{
+}
OpenPOWER on IntegriCloud