summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema')
-rw-r--r--clang/test/Sema/inline.c2
-rw-r--r--clang/test/Sema/unused-expr.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/clang/test/Sema/inline.c b/clang/test/Sema/inline.c
index 6377d40b8f3..c27c00efaad 100644
--- a/clang/test/Sema/inline.c
+++ b/clang/test/Sema/inline.c
@@ -34,9 +34,7 @@ extern inline int useStaticInlineFromExtern () {
return useStaticFromStatic(); // no-warning
}
-#if __has_attribute(const)
static int constFunction() __attribute__((const));
-#endif
inline int useConst () {
return constFunction(); // no-warning
diff --git a/clang/test/Sema/unused-expr.c b/clang/test/Sema/unused-expr.c
index 6081ce651f0..056d09a8713 100644
--- a/clang/test/Sema/unused-expr.c
+++ b/clang/test/Sema/unused-expr.c
@@ -82,9 +82,7 @@ void t5() {
int fn1() __attribute__ ((warn_unused_result));
int fn2() __attribute__ ((pure));
-#if __has_attribute(__const)
int fn3() __attribute__ ((__const));
-#endif
// rdar://6587766
int t6() {
if (fn1() < 0 || fn2(2,1) < 0 || fn3(2) < 0) // no warnings
OpenPOWER on IntegriCloud