| 1 |
// PR c++/71909 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-fgnu-tm" } |
| 4 |
|
| 5 |
struct S |
| 6 |
{ |
| 7 |
S () __transaction_atomic [[outer]] try : m {0} {} catch (int) {} catch (...) {} |
| 8 |
int m; |
| 9 |
}; |
| 10 |
|
| 11 |
struct T |
| 12 |
{ |
| 13 |
T () __transaction_atomic __attribute__((outer)) try : m {0} {} catch (int) {} catch (...) {} |
| 14 |
int m; |
| 15 |
}; |
| 16 |
|
| 17 |
void foo () __transaction_atomic [[outer]] try {} catch (int) {} catch (...) {} |
| 18 |
void bar () __transaction_atomic __attribute__((outer)) try {} catch (int) {} catch (...) {} |