1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 5 * This Source Code Form is subject to the terms of the Mozilla Public 6 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 8 */ 9 10 #pragma once 11 12 struct S 13 { 14 void f1(); 15 void f2() const; 16 void f3(); 17 void f3() const; 18 }; 19 20 int&& nix(); 21 int const&& cix(); 22 int nir(); 23 #pragma clang diagnostic push 24 #pragma clang diagnostic ignored "-Wignored-qualifiers" 25 int const cir(); 26 #pragma clang diagnostic pop 27 28 S&& nsx(); 29 S const&& csx(); 30 S nsr(); 31 S const csr(); 32 33 void testArithmeticTypedefs(); 34 35 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ 36