forked from qt-creator/qt-creator
Tests: Add some lines to test editing of strings in debugger
Change-Id: I5178724e693db53ffcd99e3d17c3f6d18da0ef09 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -25,12 +25,21 @@
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
|
||||
QString qs("I'm a QString");
|
||||
std::string stds("I'm a std::string");
|
||||
char c[] = "I'm a char c[]";
|
||||
qDebug() << "This is a QString:" << qs;
|
||||
std::cout << "This is a std::string: " << stds << std::endl;
|
||||
std::cout << "This is a char c[]: " << c << std::endl;
|
||||
|
||||
qDebug() << "This is QDebug";
|
||||
std::cout << "This is stdout" << std::endl;
|
||||
std::cerr << "This is stderr" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user