~timo-jyrinki/ubuntu/saucy/qtcreator/add_workaround_back

« back to all changes in this revision

Viewing changes to tests/manual/debugger/simple/simple_test_app.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-11-18 16:18:49 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20111118161849-5t8jugl6egvs4iev
Tags: 2.4.0~rc-0ubuntu1
* New upstream release candidate.
* Drop 04_fix_ftbfs_arm_qreal.diff, merged upstream.
* Refresh 01_fix_installation_paths.diff.
* Compress binary packages with xz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
**
5
5
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6
6
**
7
 
** Contact: Nokia Corporation (info@qt.nokia.com)
 
7
** Contact: Nokia Corporation (qt-info@nokia.com)
8
8
**
9
9
**
10
10
** GNU Lesser General Public License Usage
26
26
** conditions contained in a signed written agreement between you and Nokia.
27
27
**
28
28
** If you have questions regarding the use of this file, please contact
29
 
** Nokia at info@qt.nokia.com.
 
29
** Nokia at qt-info@nokia.com.
30
30
**
31
31
**************************************************************************/
32
32
 
174
174
#endif
175
175
 
176
176
#if USE_AUTOBREAK
177
 
#   if Q_CC_MSVC
 
177
#   ifdef Q_CC_MSVC
178
178
#       define BREAK_HERE __asm { int 3 }; __asm { mov eax, eax }
179
179
#   else
180
180
#       define BREAK_HERE asm("int $3; mov %eax, %eax")
184
184
#endif
185
185
 
186
186
#if USE_UNINITIALIZED_AUTOBREAK
187
 
#   if Q_CC_MSVC
 
187
#   ifdef Q_CC_MSVC
188
188
#       define BREAK_UNINITIALIZED_HERE __asm { int 3 }; __asm { mov eax, eax }
189
189
#   else
190
190
#       define BREAK_UNINITIALIZED_HERE asm("int $3; mov %eax, %eax")
917
917
        parent.setObjectName("A Parent");
918
918
        QObject child(&parent);
919
919
        child.setObjectName("A Child");
920
 
        QObject::connect(&child, SIGNAL(destroyed()), qApp, SLOT(quit()));
921
 
        QObject::disconnect(&child, SIGNAL(destroyed()), qApp, SLOT(quit()));
 
920
        QObject::connect(&child, SIGNAL(destroyed()), &parent, SLOT(deleteLater()));
 
921
        QObject::disconnect(&child, SIGNAL(destroyed()), &parent, SLOT(deleteLater()));
922
922
        child.setObjectName("A renamed Child");
923
923
        BREAK_HERE;
924
924
        // Expand all.
1979
1979
        // Windows: Select UTF-16 in "Change Format for Type" in L&W context menu.
1980
1980
        // Other: Select UCS-6 in "Change Format for Type" in L&W context menu.
1981
1981
 
 
1982
        const unsigned char uu[] = {'a', 'ö', 'a' };
 
1983
        const unsigned char *u = uu;
 
1984
        BREAK_HERE;
 
1985
 
1982
1986
        // Make sure to undo "Change Format".
1983
 
        dummyStatement(&s, &w, &t);
 
1987
        dummyStatement(&s, &w, &t, &u);
1984
1988
    }
1985
1989
 
1986
1990
    void testCharArrays()
3634
3638
} // namespace cp
3635
3639
 
3636
3640
 
 
3641
namespace bug6465 {
 
3642
 
 
3643
    // https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6465
 
3644
 
 
3645
    void test6465()
 
3646
    {
 
3647
        typedef char Foo[20];
 
3648
        Foo foo = "foo";
 
3649
        char bar[20] = "baz";
 
3650
        // BREAK HERE
 
3651
        dummyStatement(&foo, &bar);
 
3652
    }
 
3653
 
 
3654
} // namespace bug6465
 
3655
 
 
3656
 
3637
3657
namespace varargs {
3638
3658
 
3639
3659
    void test(const char *format, ...)
3778
3798
    bug5106::test5106();
3779
3799
    bug5184::test5184();
3780
3800
    bug5799::test5799();
 
3801
    bug6465::test6465();
3781
3802
 
3782
3803
    application::testApplicationStart(argc, argv);
3783
3804