brintos

brintos / llvm-project-archived public Read only

0
0
Text · 254 B · 81d3055 Raw
9 lines · cpp
1// RUN: %clang_cc1 -std=c++20 %s -emit-obj -o /dev/null2 3const int* test_odr_used() {4  // This previously crashed due to Value improperly being removed from5  // MaybeODRUseExprs.6  static constexpr int Value = 0;7  return __builtin_addressof(Value);8}9