cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

test-cxx.cpp (275B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <iostream>
      3#include <memory>
      4
      5static void print_str(std::string s)
      6{
      7	std::cout << s << std::endl;
      8}
      9
     10int main()
     11{
     12	std::string s("Hello World!");
     13	print_str(std::move(s));
     14	std::cout << "|" << s << "|" << std::endl;
     15	return 0;
     16}