Try to fix #7608 (Assertion failed in test/testvarid.cpp at line 1988)
This commit is contained in:
parent
83b982064d
commit
ca929f0f1b
|
@ -28,8 +28,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Settings settings;
|
|
||||||
|
|
||||||
void run() {
|
void run() {
|
||||||
TEST_CASE(varid1);
|
TEST_CASE(varid1);
|
||||||
TEST_CASE(varid2);
|
TEST_CASE(varid2);
|
||||||
|
@ -178,6 +176,8 @@ private:
|
||||||
std::string tokenize(const char code[], bool simplify = false, const char filename[] = "test.cpp") {
|
std::string tokenize(const char code[], bool simplify = false, const char filename[] = "test.cpp") {
|
||||||
errout.str("");
|
errout.str("");
|
||||||
|
|
||||||
|
Settings settings;
|
||||||
|
settings.platform(Settings::Unix64);
|
||||||
settings.standards.c = Standards::C89;
|
settings.standards.c = Standards::C89;
|
||||||
settings.standards.cpp = Standards::CPP11;
|
settings.standards.cpp = Standards::CPP11;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue