File: 1425.ispc

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (12 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
//; RUN: %{ispc} %s --no-pragma-once -h %t_no_pragma.h -o /dev/null
//; RUN: FileCheck --input-file=%t_no_pragma.h %s --implicit-check-not "#pragma once"
//; RUN: %{ispc} %s -h %t_with_pragma.h -o /dev/null
//; RUN: FileCheck --input-file=%t_with_pragma.h %s -check-prefix=CHECK_PRAGMA
//; CHECK_PRAGMA: #pragma once

typedef void (*foo_fn)(const uniform int x);

export void call_foo(void (* uniform foo)(const uniform int x), const uniform int x)
{
    foo(x);
}