summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/surpress-deprecated.c
blob: db9ab3f4eeb65bb73fdf3ee98e16a36905c7fedf (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
// expected-no-diagnostics
extern void OldFunction() __attribute__((deprecated));

int main (int argc, const char * argv[]) {
  OldFunction();
}

OpenPOWER on IntegriCloud