Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC++ / 2007-01-06-ELF-Thunk-Sections.cpp
blob654e11be1ffcc7752fe97183faa57715c5db066d
1 // RUN: %llvmgxx %s -emit-llvm -S -o - | not grep gnu.linkonce.
2 // PR1085
4 class
5 __attribute__((visibility("default"))) QGenericArgument
7 public:inline QGenericArgument(const char *aName = 0, const void *aData = 0):_data(aData), _name(aName) {
9 private:const void *_data;
10 const char *_name;
12 struct __attribute__ ((
13 visibility("default"))) QMetaObject
15 struct {
19 class
20 __attribute__((visibility("default"))) QObject
22 virtual const QMetaObject *metaObject() const;
24 class
25 __attribute__((visibility("default"))) QPaintDevice
27 public:enum PaintDeviceMetric {
28 PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM, PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY, PdmPhysicalDpiX, PdmPhysicalDpiY
30 virtual ~ QPaintDevice();
31 union {
33 ct;
35 class
36 __attribute__((visibility("default"))) QWidget:public QObject, public QPaintDevice
39 class
40 __attribute__((visibility("default"))) QDialog:public QWidget
43 class TopicChooser:public QDialog {
44 virtual const QMetaObject *metaObject() const;
46 const QMetaObject *TopicChooser::
47 metaObject() const