forked from OSchip/llvm-project
10 lines
376 B
C
10 lines
376 B
C
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-apple-darwin %s
|
||
|
|
||
|
// This file tests -Wconstant-conversion, a subcategory of -Wconversion
|
||
|
// which is on by default.
|
||
|
|
||
|
// rdar://problem/6792488
|
||
|
void test_6792488(void) {
|
||
|
int x = 0x3ff0000000000000U; // expected-warning {{implicit conversion from 'unsigned long' to 'int' changes value from 4607182418800017408 to 0}}
|
||
|
}
|