From 1569ce68681d909594d64f9b056d71f5dd7563bf Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 1 Dec 2009 11:08:04 +0000 Subject: Update clang to r90226. --- test/CXX/basic/basic.link/p9.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CXX/basic/basic.link/p9.cpp (limited to 'test/CXX/basic/basic.link') diff --git a/test/CXX/basic/basic.link/p9.cpp b/test/CXX/basic/basic.link/p9.cpp new file mode 100644 index 0000000000000..ecff3eebafecc --- /dev/null +++ b/test/CXX/basic/basic.link/p9.cpp @@ -0,0 +1,11 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +// FIXME: This test is woefully incomplete. +namespace N { } // expected-note{{here}} + +// First bullet: two names with external linkage that refer to +// different kinds of entities. +void f() { + int N(); // expected-error{{redefinition}} +} + -- cgit v1.2.3