// RUN: %clang_cc1 -w -emit-llvm %s -O1 -o - | FileCheck %s
// This used to "check for bug compatibility with gcc".
// Now it checks that that the "weak" declaration makes the value
// fully interposable whereas a "selectany" one is handled as constant
// and propagated.
// CHECK: @x = weak {{.*}}constant i32 123
const int x = 123;
// CHECK: @y = weak_odr {{.*}}constant i32 234
const int y = 234;
int*
int
int *
int