diff options
| author | con <[email protected]> | 2010-07-09 16:01:34 +0200 |
|---|---|---|
| committer | con <[email protected]> | 2010-07-09 16:02:20 +0200 |
| commit | 009ea5cdfae28df71bd72e5196b9c51566a7031b (patch) | |
| tree | ece526f2768f4555ce5d1c903778f581b02968d3 /tests/manual/cppquickfix/convertnumericliteral.cpp | |
| parent | b4cecd6ec8a39c10913887fd9a99293a260e6482 (diff) | |
Add some manual test files for two quick fixes.
Diffstat (limited to 'tests/manual/cppquickfix/convertnumericliteral.cpp')
| -rw-r--r-- | tests/manual/cppquickfix/convertnumericliteral.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/manual/cppquickfix/convertnumericliteral.cpp b/tests/manual/cppquickfix/convertnumericliteral.cpp new file mode 100644 index 00000000000..6c1a27a2e48 --- /dev/null +++ b/tests/manual/cppquickfix/convertnumericliteral.cpp @@ -0,0 +1,21 @@ +int main() +{ + // standard case + 199; + 074; + 0x856A; + // with type specifier + 199L; + 074L; + 0xFA0Bu; + // uppercase X + 0X856A; + // negativ values + -199; + -017; + // not integer, do nothing + 298.3; + // ignore invalid octal + 0783; + 0; // border case, only hex<->decimal +} |
