Welcome to mirror list, hosted at ThFree Co, Russian Federation.

typeid-ref.cpp « SemaCXX « test « clang - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d01fd316854c334ba18ac27e8a672558293aa4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
namespace std {
  class type_info;
}

struct X { };

void f() {
  // CHECK: @_ZTS1X = linkonce_odr constant
  // CHECK: @_ZTI1X = linkonce_odr unnamed_addr constant 
  (void)typeid(X&);
}