mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123527 - Initialized some locals in TestNoArithmeticExprInArgument.cpp. r=ehsan.
I think these undefined variables don't matter because it's a static analysis input, but defining them does stop cppcheck from complaining. --HG-- extra : rebase_source : 9f663aad5c939af6798cb9a080d25256c3d105fe
This commit is contained in:
parent
292acc224d
commit
c186747b35
@ -10,9 +10,9 @@ int operator+(X, int);
|
||||
int operator++(X);
|
||||
|
||||
void badArithmeticsInArgs() {
|
||||
int a;
|
||||
int a = 1;
|
||||
typedef int myint;
|
||||
myint b;
|
||||
myint b = 2;
|
||||
X goodObj1(a);
|
||||
goodObj1.baz(b);
|
||||
X badObj1(a + b); // expected-error{{cannot pass an arithmetic expression of built-in types to 'X'}}
|
||||
|
Loading…
Reference in New Issue
Block a user