mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-13 22:06: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()->Bool = true;
|
||||
compInv->getLangOpts()->WChar = true;
|
||||
compInv->getLangOpts()->Char8 = true;
|
||||
compInv->getLangOpts()->CXXOperatorNames = true;
|
||||
compInv->getLangOpts()->DoubleSquareBracketAttributes = true;
|
||||
compInv->getLangOpts()->ImplicitInt = false;
|
||||
|
@ -51,6 +51,10 @@
|
||||
param_types = ["wchar_t"]
|
||||
setup = "return 'a';"
|
||||
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]
|
||||
param_types = ["char16_t"]
|
||||
setup = "return 'a';"
|
||||
|
Loading…
Reference in New Issue
Block a user