зеркало из https://github.com/microsoft/clang-1.git
Add a module testcase with a using declaration.
Thanks a lot to Richard Smith for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
6e22712b73
Коммит
5a15b9dc83
|
@ -0,0 +1,3 @@
|
|||
#include <linkage-merge-foo.h>
|
||||
|
||||
using ::g;
|
|
@ -1 +1,2 @@
|
|||
int f();
|
||||
static int g(int);
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
// RUN: rm -rf %t
|
||||
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
|
||||
// FIXME: we should be able to put these in the .h file :-(
|
||||
// expected-note {{target of using declaration}}
|
||||
// expected-note {{using declaration}}
|
||||
|
||||
#include "linkage-merge-bar.h"
|
||||
|
||||
static int f(int);
|
||||
int f(int);
|
||||
|
||||
static void g(int); // expected-error {{declaration conflicts with target of using declaration already in scope}}
|
||||
|
||||
// RUN: rm -rf %t
|
||||
// RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
|
||||
|
|
Загрузка…
Ссылка в новой задаче