]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/typeid-ref.cpp
Vendor import of clang trunk r162107:
[FreeBSD/FreeBSD.git] / test / SemaCXX / typeid-ref.cpp
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 namespace std {
3   class type_info;
4 }
5
6 struct X { };
7
8 void f() {
9   // CHECK: @_ZTS1X = linkonce_odr constant
10   // CHECK: @_ZTI1X = linkonce_odr unnamed_addr constant 
11   (void)typeid(X&);
12 }