summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorLeonard Chan <leonardchan@google.com>2019-05-03 03:28:06 +0000
committerLeonard Chan <leonardchan@google.com>2019-05-03 03:28:06 +0000
commitef2dc25a962deae73f8ba723ce5a55404dda9fdb (patch)
treec5e7eb641d55ef5d673cfa907a98d18451a15e36 /clang/test/Frontend
parentecc969caf9fdedb514f8a51bdeb210436a99cef1 (diff)
downloadbcm5719-llvm-ef2dc25a962deae73f8ba723ce5a55404dda9fdb.tar.gz
bcm5719-llvm-ef2dc25a962deae73f8ba723ce5a55404dda9fdb.zip
Revert "[Attribute/Diagnostics] Print macro if definition is an attribute declaration"
This reverts commit fc40cbd9d8c63e65eed3590ba925321afe782e1d. llvm-svn: 359859
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/macro_defined_type.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/test/Frontend/macro_defined_type.cpp b/clang/test/Frontend/macro_defined_type.cpp
deleted file mode 100644
index 4e60c840382..00000000000
--- a/clang/test/Frontend/macro_defined_type.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
-
-#define NODEREF __attribute__((noderef))
-
-void Func() {
- int NODEREF i; // expected-warning{{'noderef' can only be used on an array or pointer type}}
- int NODEREF *i_ptr;
-
- // There should be no difference whether a macro defined type is used or not.
- auto __attribute__((noderef)) *auto_i_ptr = i_ptr;
- auto __attribute__((noderef)) auto_i = i; // expected-warning{{'noderef' can only be used on an array or pointer type}}
-
- auto NODEREF *auto_i_ptr2 = i_ptr;
- auto NODEREF auto_i2 = i; // expected-warning{{'noderef' can only be used on an array or pointer type}}
-}
OpenPOWER on IntegriCloud