summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/inheritance-2.slang
blob: 6b1bcfaffbb5f14d63817e7b436b5d07396b604d (plain)
1
2
3
4
5
6
7
8
9
10
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):

// Tests that we will diagnose an error on struct inheritance in language 2026 or later.

#lang 2026

struct Base {}

//CHECK: ([[# @LINE+1]]): error 30811:
struct Derived : Base {}