aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attr-expr1.C
blob: 990e710e40ca395ab8d8eabc69ca0cfcec18dd5c (plain)
1
2
3
4
5
6
7
8
9
// PR c++/95192

template<typename T>
__attribute__((assume_aligned(sizeof(int(T()))))) // { dg-message "function type" }
T *f();

void test21() {
  void *p = f<void>()		// { dg-error "no match" }
}