1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2*f4a2713aSLionel Sambuc // Don't crash on a common-linkage constant global. 3*f4a2713aSLionel Sambuc extern const int kABSourceTypeProperty; foo(void)4*f4a2713aSLionel Sambucint foo(void) { 5*f4a2713aSLionel Sambuc return kABSourceTypeProperty; 6*f4a2713aSLionel Sambuc } 7*f4a2713aSLionel Sambuc const int kABSourceTypeProperty; 8