diff --git a/REUSE.toml b/REUSE.toml index 7d72caa6d5c..30b6ce6bee2 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -208,3 +208,12 @@ SPDX-FileCopyrightText = [ "Copyright (C) 2000-2024 Free Software Foundation, Inc.", ] SPDX-License-Identifier = "GCC-exception-3.1" + + [[annotations]] + path = "compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs" + precedence = "override" + SPDX-FileCopyrightText = [ + "2003-2019 University of Illinois at Urbana-Champaign.", + "The Rust Project Developers (see https://thanks.rust-lang.org)", + ] + SPDX-License-Identifier = "Apache-2.0 WITH LLVM-exception AND (Apache-2.0 OR MIT)" diff --git a/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs b/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs index 6c2f2bf9037..d26b0850798 100644 --- a/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs +++ b/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs @@ -1,3 +1,11 @@ +// Derived from code in LLVM, which is: +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +// Derived from: +// * https://github.com/llvm/llvm-project/blob/f2453af624353273325fe888d794a925ea9fe852/llvm/unittests/Support/SipHashTest.cpp + use llvm_siphash_vectors::{EXPECTED64, TEST_KEY}; use super::*;