summaryrefslogtreecommitdiffstats
path: root/test/CXX/dcl.decl/dcl.name/p1.cpp
blob: 7586007cc7b3892706f50bc8f15d3001fb82088d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify %s

namespace pr6200 {
  struct v {};
  struct s {
    int i;
    operator struct v() { return v(); };
  };

  void f()
  {
    // Neither of these is a declaration.
    (void)new struct s;
    (void)&s::operator struct v;
  }
}
OpenPOWER on IntegriCloud