<commit_before>// RUN: %clang_cc1 %s -emit-llvm-only -verify
// PR7281

class A {
public:
    ~A();
};
class B : public A {
    void ice_throw();
};
void B::ice_throw() {
    throw *this;
}
<commit_msg>Make sure this test doesn't break when we disallow throwing an exception in -fno-exceptions mode.<commit_after>// RUN: %clang_cc1 %s -emit-llvm -o - -fexceptions | FileCheck %s
// PR7281

class A {
public:
    ~A();
};
class B : public A {
    void ice_throw();
};
void B::ice_throw() {
    throw *this;
}
{'fraction_non_alphanumeric': 0.15976331360946747, 'fraction_numerical': 0.01972386587771203, 'mean_word_length': 3.130081300813008, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3508212', 'n_tokens_mistral': 198, 'n_tokens_neox': 190, 'n_words': 59}