summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/serialization/qtextstream/stdinProcess/main.cpp
blob: b8a274ed0f243304b849380fae72bf7a0564854c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only


#include <QtCore/QTextStream>
#include <stdio.h>

int main(int, char**)
{
    QTextStream qin(stdin);
    if (!qin.atEnd()) {
        int a, b, c;
        qin >> a >> b >> c;
        fprintf(stderr, "%d %d %d\n", a, b, c);
    }
    return 0;
}