xref: /llvm-project-15.0.7/clang/test/CXX/expr/p8.cpp (revision c6e68daa)
18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s
2*c6e68daaSAndy Gibbs // expected-no-diagnostics
31245e6ffSDouglas Gregor 
41245e6ffSDouglas Gregor int a0;
5e6565625SDouglas Gregor const volatile int a1 = 2;
61245e6ffSDouglas Gregor int a2[16];
71245e6ffSDouglas Gregor int a3();
81245e6ffSDouglas Gregor 
91245e6ffSDouglas Gregor void f0(int);
101245e6ffSDouglas Gregor void f1(int *);
111245e6ffSDouglas Gregor void f2(int (*)());
121245e6ffSDouglas Gregor 
main()131245e6ffSDouglas Gregor int main()
141245e6ffSDouglas Gregor {
151245e6ffSDouglas Gregor   f0(a0);
161245e6ffSDouglas Gregor   f0(a1);
171245e6ffSDouglas Gregor   f1(a2);
181245e6ffSDouglas Gregor   f2(a3);
191245e6ffSDouglas Gregor }
20