Files
qt-creator/tests/manual/cppquickfix/convertnumericliteral.cpp
Tobias Hunger cf3a418cd8 Fix spelling in comments
Krazy was complaining about those.
2010-11-03 12:45:34 +01:00

22 lines
323 B
C++

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
}