2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-02-18 14:48:16 +01:00
|
|
|
|
2010-07-09 16:01:34 +02:00
|
|
|
int main()
|
|
|
|
{
|
|
|
|
// standard case
|
|
|
|
199;
|
|
|
|
074;
|
|
|
|
0x856A;
|
|
|
|
// with type specifier
|
2010-07-26 13:06:33 +02:00
|
|
|
199LL;
|
2010-07-09 16:01:34 +02:00
|
|
|
074L;
|
|
|
|
0xFA0Bu;
|
|
|
|
// uppercase X
|
|
|
|
0X856A;
|
2010-10-30 21:54:23 +02:00
|
|
|
// negative values
|
2010-07-09 16:01:34 +02:00
|
|
|
-199;
|
|
|
|
-017;
|
|
|
|
// not integer, do nothing
|
|
|
|
298.3;
|
|
|
|
// ignore invalid octal
|
|
|
|
0783;
|
|
|
|
0; // border case, only hex<->decimal
|
|
|
|
}
|