Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CXX / dcl.decl / p4-0x.cpp
blob3a7b21568044f786f9b7550366666d90527b8544
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
3 struct X {
4 void f() &;
5 void g() &&;
6 };
8 void (X::*pmf)() & = &X::f;
10 void fn() {
11 void (*[[attr]] fn_ptr)() = &fn; // expected-warning{{unknown attribute 'attr' ignored}}
12 void (*[[attrA]] *[[attrB]] fn_ptr_ptr)() = &fn_ptr; // expected-warning{{unknown attribute 'attrA' ignored}} expected-warning{{unknown attribute 'attrB' ignored}}
14 void (&[[attr]] fn_lref)() = fn; // expected-warning{{unknown attribute 'attr' ignored}}
15 void (&&[[attr]] fn_rref)() = fn; // expected-warning{{unknown attribute 'attr' ignored}}
17 int i[5];
18 int (*[[attr(i[1])]] pi); // expected-warning{{unknown attribute 'attr' ignored}}
19 pi = &i[0];