llvm-6502/test/FrontendC++/2007-01-06-ELF-Thunk-Sections.cpp
Duncan Sands 71a39f4b6f Remove explicit uses of -emit-llvm, the test infrastructure adds it
automatically.  Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120160 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-25 21:39:17 +00:00

50 lines
1.1 KiB
C++

// RUN: %llvmgxx %s -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
{
}