[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 6 16:32:30 PST 2007
Changes in directory llvm/test/Regression/C++Frontend:
2007-01-06-ELF-Thunk-Sections.cpp added (r1.1)
---
Log message:
Testcase for PR1085: http://llvm.org/PR1085
---
Diffs of the changes: (+50 -0)
2007-01-06-ELF-Thunk-Sections.cpp | 50 ++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+)
Index: llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp:1.1
*** /dev/null Sat Jan 6 18:32:25 2007
--- llvm/test/Regression/C++Frontend/2007-01-06-ELF-Thunk-Sections.cpp Sat Jan 6 18:32:15 2007
***************
*** 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
+ {
+ }
More information about the llvm-commits
mailing list