Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s |
Douglas Gregor | 57fdc8a | 2010-04-26 22:37:10 +0000 | [diff] [blame] | 2 | namespace std { |
| 3 | class type_info; |
| 4 | } |
| 5 | |
| 6 | struct X { }; |
| 7 | |
| 8 | void f() { |
Anders Carlsson | f502d93 | 2011-01-24 00:46:19 +0000 | [diff] [blame] | 9 | // CHECK: @_ZTS1X = linkonce_odr constant |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 10 | // CHECK: @_ZTI1X = linkonce_odr constant |
Douglas Gregor | 57fdc8a | 2010-04-26 22:37:10 +0000 | [diff] [blame] | 11 | (void)typeid(X&); |
| 12 | } |