summaryrefslogtreecommitdiffstats
path: root/test/Sema/surpress-deprecated.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/surpress-deprecated.c')
-rw-r--r--test/Sema/surpress-deprecated.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/surpress-deprecated.c b/test/Sema/surpress-deprecated.c
new file mode 100644
index 0000000..8dbe9dd
--- /dev/null
+++ b/test/Sema/surpress-deprecated.c
@@ -0,0 +1,7 @@
+// RUN: clang -fsyntax-only -Wno-deprecated-declarations -verify %s
+extern void OldFunction() __attribute__((deprecated));
+
+int main (int argc, const char * argv[]) {
+ OldFunction();
+}
+
OpenPOWER on IntegriCloud