| 1 |
// { dg-options "-std=c++17" } |
| 2 |
// { dg-do run } |
| 3 |
|
| 4 |
#include <typeinfo> |
| 5 |
|
| 6 |
void f1(); |
| 7 |
void f2() noexcept; |
| 8 |
int main() { |
| 9 |
if((typeid(void()) == typeid(void ()noexcept)) |
| 10 |
|| (typeid(&f1) == typeid(&f2)) |
| 11 |
|| (typeid(f1) == typeid(f2))) |
| 12 |
__builtin_abort(); |
| 13 |
} |