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:
Nicholas Nethercote 2015-01-15 22:16:38 -08:00
parent 292acc224d
commit c186747b35

View File

@ -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'}}