| 1 |
/* { dg-do compile { target *-*-darwin* } } */ |
| 2 |
/* { dg-final { scan-assembler-not "\\.weak_definition __ZTI" } } */ |
| 3 |
|
| 4 |
/* Verify that none of the type_info structures for the fundamental |
| 5 |
types are emitted as weak on Darwin. */ |
| 6 |
|
| 7 |
#include <cxxabi.h> |
| 8 |
|
| 9 |
namespace __cxxabiv1 { |
| 10 |
|
| 11 |
using namespace std; |
| 12 |
|
| 13 |
// This has special meaning to the compiler, and will cause it |
| 14 |
// to emit the type_info structures for the fundamental types which are |
| 15 |
// mandated to exist in the runtime. |
| 16 |
__fundamental_type_info:: |
| 17 |
~__fundamental_type_info () |
| 18 |
{} |
| 19 |
|
| 20 |
} |