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