summaryrefslogtreecommitdiff
path: root/tests/manual/cplusplus
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-09-15 11:50:24 +0200
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-09-15 11:50:24 +0200
commit9bcfd348454267db1cb98425260774248a90f60a (patch)
treec7653823fd1c2ed34adaf8cdac97cbf08744b17d /tests/manual/cplusplus
parente4de305b029efbbbfdf3dd9d0b4677db6b8796d5 (diff)
downloadqt-creator-9bcfd348454267db1cb98425260774248a90f60a.tar.gz
Renamed two cplusplus projects to not conflict with the autotests.
Diffstat (limited to 'tests/manual/cplusplus')
-rwxr-xr-xtests/manual/cplusplus/c++5
-rw-r--r--tests/manual/cplusplus/conf.c++15
-rw-r--r--tests/manual/cplusplus/cplusplus.pro19
-rw-r--r--tests/manual/cplusplus/main.cpp79
-rw-r--r--tests/manual/cplusplus/tests/t1.cpp56
5 files changed, 0 insertions, 174 deletions
diff --git a/tests/manual/cplusplus/c++ b/tests/manual/cplusplus/c++
deleted file mode 100755
index a5908b79ff..0000000000
--- a/tests/manual/cplusplus/c++
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-me=$(dirname $0)
-${CPP-gcc} -U__BLOCKS__ -xc++ -E -include $me/conf.c++ $* > $me/file.i
-$me/cplusplus0 $me/file.i
-
diff --git a/tests/manual/cplusplus/conf.c++ b/tests/manual/cplusplus/conf.c++
deleted file mode 100644
index 69bafe0459..0000000000
--- a/tests/manual/cplusplus/conf.c++
+++ /dev/null
@@ -1,15 +0,0 @@
-#define __extension__
-#define __context__
-#define __range__
-#define __asm(a...)
-#define __asm__(a...)
-#define restrict
-#define __restrict
-#define __restrict__
-// #define __weak
-#define __builtin_va_arg(a,b) ((b)0)
-#define __stdcall
-#define __fastcall
-#define __imag__
-#define __real__
-#define __complex__
diff --git a/tests/manual/cplusplus/cplusplus.pro b/tests/manual/cplusplus/cplusplus.pro
deleted file mode 100644
index 4964d9c5ea..0000000000
--- a/tests/manual/cplusplus/cplusplus.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-QT = core gui
-macx:CONFIG -= app_bundle
-TARGET = cplusplus0
-
-include(../../../src/libs/cplusplus/cplusplus-lib.pri)
-
-# Input
-SOURCES += main.cpp
-
-unix {
- debug:OBJECTS_DIR = $${OUT_PWD}/.obj/debug-shared
- release:OBJECTS_DIR = $${OUT_PWD}/.obj/release-shared
-
- debug:MOC_DIR = $${OUT_PWD}/.moc/debug-shared
- release:MOC_DIR = $${OUT_PWD}/.moc/release-shared
-
- RCC_DIR = $${OUT_PWD}/.rcc/
- UI_DIR = $${OUT_PWD}/.uic/
-}
diff --git a/tests/manual/cplusplus/main.cpp b/tests/manual/cplusplus/main.cpp
deleted file mode 100644
index b4b937b7d3..0000000000
--- a/tests/manual/cplusplus/main.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** Commercial Usage
-**
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://qt.nokia.com/contact.
-**
-**************************************************************************/
-
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <ASTPatternBuilder.h>
-#include <ASTMatcher.h>
-#include <Control.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <CoreTypes.h>
-#include <CppDocument.h>
-
-#include <QFile>
-#include <QList>
-#include <QCoreApplication>
-#include <QStringList>
-#include <QFileInfo>
-#include <QTime>
-#include <QtDebug>
-
-#include <cstdio>
-#include <cstdlib>
-#include <iostream>
-
-using namespace CPlusPlus;
-
-int main(int argc, char *argv[])
-{
- QCoreApplication app(argc, argv);
-
- QStringList files = app.arguments();
- files.removeFirst();
-
- foreach (const QString &fileName, files) {
- QFile file(fileName);
- if (! file.open(QFile::ReadOnly))
- continue;
-
- const QByteArray source = file.readAll();
- file.close();
-
- Document::Ptr doc = Document::create(fileName);
- doc->control()->setDiagnosticClient(0);
- doc->setSource(source);
- doc->parse();
- }
-
- return EXIT_SUCCESS;
-}
diff --git a/tests/manual/cplusplus/tests/t1.cpp b/tests/manual/cplusplus/tests/t1.cpp
deleted file mode 100644
index c489dd3b07..0000000000
--- a/tests/manual/cplusplus/tests/t1.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-
-class Class {
- int a, b;
-
- enum zoo { a = 1, b = a + 2 + x::y<10>::value };
-
- enum {};
-
- typedef enum { k };
-
- void foo() {}
- inline void bar() {}
-
- void another_foo() {
- int a = static_cast<int>(1+2/3*4-5%6+(7&8));
- }
-
- void test_if() {
- if (a == 10) return 1;
- else if (b == 20) return 2;
- else if (c == 30) { x = 1; }
- }
-
- void test_while() {
- while (int a = 1) {
- exit();
- }
-
- while (x==1) do_something_here();
-
- while (x==2) if(a==1) c(); else if (a==2) c(); else c3();
- }
-
- void test_switch() {
- switch (int k = 1) {
- case 'a': case 'b': case '\\':
- return 1;
- case 1|2: { return 3; } break;
- case x: break;
- case y:
- foo();
- break;
- default:
- return 2;
- }
- s = L"ci\"aa\"ao" L"blah!";
- s2 = "ciao \"ciao\" ciao";
- }
-};
-
-class Derived: public Class {
- operator bool() const volatile throw () { return 1; }
- Derived &operator++() {}
-};
-
-class Derived2: public Class, public virtual Derived {};