Skip to content

Commit 2f186c9

Browse files
committed
Remove unnecessary ::new qualifier
1 parent c21d6cf commit 2f186c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Analysis/initializer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,15 +451,15 @@ struct S {
451451
};
452452
void aggregate_struct() {
453453
S s;
454-
::new (&s) S{1};
454+
new (&s) S{1};
455455
clang_analyzer_eval(1 == s.x); // expected-warning{{TRUE}}
456456

457457
S vi;
458-
::new (&vi) S{};
458+
new (&vi) S{};
459459
clang_analyzer_eval(0 == vi.x); // expected-warning{{TRUE}}
460460

461461
S di;
462-
::new (&di) S;
462+
new (&di) S;
463463
int z = di.x + 1; // expected-warning{{The left operand of '+' is a garbage value}}
464464
}
465465
void initialize_non_zeroth_element(S arr[2]) {

0 commit comments

Comments
 (0)