summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr47559.C
blob: 42dedee291c46ef6a1a9b015ad58f193f4babf8f (plain)
1
2
3
4
5
6
7
8
// { dg-do compile }
// { dg-options "-std=c++0x -fnon-call-exceptions" }

void foo (int *k) noexcept
{
  for (;;)
    *k = 0;
}