diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-31 17:28:26 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-31 17:28:26 +0000 |
commit | 1bf3b718cd549fcf058976bcd312a20886237021 (patch) | |
tree | 5a62839cf66e99e163a0ad09907819361b9cdbd5 /clang/test/Sema/surpress-deprecated.c | |
parent | 452e1c8a6a99f4142beccc8cc4a9fb4a0864e6cf (diff) | |
download | bcm5719-llvm-1bf3b718cd549fcf058976bcd312a20886237021.tar.gz bcm5719-llvm-1bf3b718cd549fcf058976bcd312a20886237021.zip |
Add -Wdeprecated-declarations to driver and add a test case.
llvm-svn: 68117
Diffstat (limited to 'clang/test/Sema/surpress-deprecated.c')
-rw-r--r-- | clang/test/Sema/surpress-deprecated.c | 7 |
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 00000000000..8dbe9dd3658 --- /dev/null +++ b/clang/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(); +} + |