forked from qt-creator/qt-creator
Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
25 lines
468 B
C++
25 lines
468 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
|
|
|
int main()
|
|
{
|
|
// standard case
|
|
199;
|
|
074;
|
|
0x856A;
|
|
// with type specifier
|
|
199LL;
|
|
074L;
|
|
0xFA0Bu;
|
|
// uppercase X
|
|
0X856A;
|
|
// negative values
|
|
-199;
|
|
-017;
|
|
// not integer, do nothing
|
|
298.3;
|
|
// ignore invalid octal
|
|
0783;
|
|
0; // border case, only hex<->decimal
|
|
}
|