forked from OSchip/llvm-project
Neither attribute overloadable nor enable_if are supported by GCC. Disable the
GCC warning about attributes on function definitions for both of them. llvm-svn: 199710
This commit is contained in:
parent
e1bd71fea4
commit
36e9b3ccff
|
@ -529,7 +529,7 @@ def Destructor : InheritableAttr {
|
|||
|
||||
def EnableIf : InheritableAttr {
|
||||
let Spellings = [GNU<"enable_if">];
|
||||
let Subjects = SubjectList<[Function]>;
|
||||
let Subjects = SubjectList<[FunctionDefinition]>;
|
||||
let Args = [ExprArgument<"Cond">, StringArgument<"Message">];
|
||||
let TemplateDependent = 1;
|
||||
}
|
||||
|
@ -825,7 +825,7 @@ def ObjCDesignatedInitializer : Attr {
|
|||
|
||||
def Overloadable : Attr {
|
||||
let Spellings = [GNU<"overloadable">];
|
||||
let Subjects = SubjectList<[Function], ErrorDiag>;
|
||||
let Subjects = SubjectList<[FunctionDefinition], ErrorDiag>;
|
||||
}
|
||||
|
||||
def Override : InheritableAttr {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: %clang_cc1 %s -verify -Wno-gcc-compat
|
||||
// RUN: %clang_cc1 %s -DCODEGEN -emit-llvm -o - -Wno-gcc-compat | FileCheck %s
|
||||
// RUN: %clang_cc1 %s -verify
|
||||
// RUN: %clang_cc1 %s -DCODEGEN -emit-llvm -o - | FileCheck %s
|
||||
|
||||
#define O_CREAT 0x100
|
||||
typedef int mode_t;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -std=c++11 -verify -Wno-gcc-compat %s
|
||||
// RUN: %clang_cc1 -std=c++11 -verify %s
|
||||
|
||||
typedef int (*fp)(int);
|
||||
int surrogate(int);
|
||||
|
|
Loading…
Reference in New Issue