[mlir] Fix typo in test vector transform pass descriptions (#118194)
[llvm-project.git] / clang / test / SemaCXX / PR19955.cpp
blobcbbe2fe9af164187af4d424c2d1f21e97abfa6b1
1 // RUN: %clang_cc1 -triple i686-win32 -verify -std=c++11 %s
2 // RUN: %clang_cc1 -triple i686-mingw32 -verify -std=c++11 %s
4 extern int __attribute__((dllimport)) var;
5 constexpr int *varp = &var; // expected-error {{must be initialized by a constant expression}}
7 extern __attribute__((dllimport)) void fun();
8 constexpr void (*funp)(void) = &fun; // expected-error {{must be initialized by a constant expression}}
10 template <void (*)()>
11 struct S {};
12 S<&fun> x;
14 template <int *>
15 struct U {};
16 U<&var> y;