mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-14 14:26:55 +00:00
integration/primitives.toml: Add char8_t test
This commit is contained in:
parent
e458ca99eb
commit
9fd96ec3a4
@ -471,6 +471,7 @@ bool OICompiler::compile(const std::string &code, const fs::path &sourcePath,
|
|||||||
compInv->getLangOpts()->GNUCVersion = 11 * 100 * 100; // 11.0.0
|
compInv->getLangOpts()->GNUCVersion = 11 * 100 * 100; // 11.0.0
|
||||||
compInv->getLangOpts()->Bool = true;
|
compInv->getLangOpts()->Bool = true;
|
||||||
compInv->getLangOpts()->WChar = true;
|
compInv->getLangOpts()->WChar = true;
|
||||||
|
compInv->getLangOpts()->Char8 = true;
|
||||||
compInv->getLangOpts()->CXXOperatorNames = true;
|
compInv->getLangOpts()->CXXOperatorNames = true;
|
||||||
compInv->getLangOpts()->DoubleSquareBracketAttributes = true;
|
compInv->getLangOpts()->DoubleSquareBracketAttributes = true;
|
||||||
compInv->getLangOpts()->ImplicitInt = false;
|
compInv->getLangOpts()->ImplicitInt = false;
|
||||||
|
@ -51,6 +51,10 @@
|
|||||||
param_types = ["wchar_t"]
|
param_types = ["wchar_t"]
|
||||||
setup = "return 'a';"
|
setup = "return 'a';"
|
||||||
expect_json = '[{"staticSize":4, "dynamicSize":0}]'
|
expect_json = '[{"staticSize":4, "dynamicSize":0}]'
|
||||||
|
[cases.char8_t]
|
||||||
|
param_types = ["char8_t"]
|
||||||
|
setup = "return 'a';"
|
||||||
|
expect_json = '[{"staticSize":1, "dynamicSize":0}]'
|
||||||
[cases.char16_t]
|
[cases.char16_t]
|
||||||
param_types = ["char16_t"]
|
param_types = ["char16_t"]
|
||||||
setup = "return 'a';"
|
setup = "return 'a';"
|
||||||
|
Loading…
Reference in New Issue
Block a user