brintos

brintos / llvm-project-archived public Read only

0
0
Text · 340 B · 6de637e Raw
11 lines · cpp
1// RUN: %clang_cc1 %s -verify -Wno-conversion -Wno-c++11-narrowing -Wimplicit-int-float-conversion2 3void testNoWarningOnNarrowing() {4  // Test that we do not issue duplicated warnings for5  // C++11 narrowing.6  float a = {222222222222L}; // expected-no-diagnostics7 8  long b = 222222222222L;9  float c = {b}; // expected-no-diagnostics10}11