// RUN: %clang_cc1 -no-opaque-pointers -triple %itanium_abi_triple -emit-llvm-only %s -verify -DTEST1
// RUN: %clang_cc1 -no-opaque-pointers -triple %itanium_abi_triple -emit-llvm-only %s -verify -DTEST2 -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -triple %itanium_abi_triple -emit-llvm-only %s -verify -DTEST3
// RUN: %clang_cc1 -no-opaque-pointers -triple %itanium_abi_triple -emit-llvm-only %s -verify -DTEST4
// rdar://15522601
;
void // expected-note {{previous}}
extern "C"
// expected-no-diagnostics
// We expect no warnings here, as there is only declaration of _ZN1TD1Ev
// function, no definitions.
extern "C" void ;
;
// We expect no warnings here, as there is only declaration of _ZN2nm3abcE
// global, no definitions.
extern "C"
// CHECK: @_ZN2nm3abcE = {{(dso_local )?}}global float
float
extern "C" void ; // expected-note {{previous definition is here}}
;
void
extern "C"
float