aboutsummaryrefslogtreecommitdiffstats
path: root/tests/copyable-polymorphic/main.cpp.fixed.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/copyable-polymorphic/main.cpp.fixed.expected')
-rw-r--r--tests/copyable-polymorphic/main.cpp.fixed.expected72
1 files changed, 0 insertions, 72 deletions
diff --git a/tests/copyable-polymorphic/main.cpp.fixed.expected b/tests/copyable-polymorphic/main.cpp.fixed.expected
deleted file mode 100644
index 1821564d..00000000
--- a/tests/copyable-polymorphic/main.cpp.fixed.expected
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-struct ValueClass // OK
-{
- int m;
-};
-
-struct DerivedValueClass : public ValueClass // OK
-{
- int m;
-};
-
-struct PolymorphicClass1 // OK, not copyable
-{
- virtual void foo();
- PolymorphicClass1(const PolymorphicClass1 &) = delete;
- PolymorphicClass1& operator=(const PolymorphicClass1 &) = delete;
-};
-
-struct PolymorphicClass2 // OK, not copyable
-{
- virtual void foo();
-private:
- PolymorphicClass2(const PolymorphicClass2 &);
- PolymorphicClass2& operator=(const PolymorphicClass2 &);
-};
-
-struct PolymorphicClass3 // OK, not copyable
-{
- virtual void foo();
- PolymorphicClass3(const PolymorphicClass3 &) = delete;
-private:
- PolymorphicClass3& operator=(const PolymorphicClass3 &) = delete;
-};
-
-struct PolymorphicClass4 // Warning, copyable
-{
- virtual void foo();
- PolymorphicClass4(const PolymorphicClass4 &);
- PolymorphicClass4& operator=(const PolymorphicClass4 &);
- Q_DISABLE_COPY(PolymorphicClass4)
-};
-
-struct PolymorphicClass5 // Warning, copyable
-{
-public:
- PolymorphicClass5() = default;
- virtual void foo();
- Q_DISABLE_COPY(PolymorphicClass5)
-};
-
-struct DerivedFromNotCopyable : public PolymorphicClass3 // OK, not copyable
-{
-};
-
-struct DerivedFromCopyable : public PolymorphicClass4 // Warning, copyable
-{
-public:
- DerivedFromCopyable() = default;
- Q_DISABLE_COPY(DerivedFromCopyable)
-};
-
-class ClassWithPrivateSection
-{
-public:
- ClassWithPrivateSection() = default;
- virtual void foo();
-private:
- Q_DISABLE_COPY(ClassWithPrivateSection)
- void bar();
- int i;
-};