view clang/test/CodeGenCXX/used-decl-visitor.cpp @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents
children
line wrap: on
line source

// RUN: %clang_cc1 -triple x86_64 -emit-llvm -o %t %s

// Make sure there is no assertion due to UsedDeclVisitor.

struct A {
  int a;
};

static A a;

struct B {
  B(int b = a.a) {}
};


void foo() {
  B();
}