summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/attr-cleanup.cpp
blob: 3ac8e817dc9e36ee33268e278799df4e7f3731ad (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-gcc-compat

namespace N {
  void c1(int *a) {}
}

void t1() {
  int v1 __attribute__((cleanup(N::c1)));
  int v2 __attribute__((cleanup(N::c2)));  // expected-error {{no member named 'c2' in namespace 'N'}}
}
OpenPOWER on IntegriCloud